Skip to content

Commit

Permalink
fix: better caching
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-sartori-zupit committed Oct 4, 2024
1 parent da5dc79 commit 09f12bb
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/node-step-format-lint-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,29 +50,29 @@ jobs:
with:
fetch-depth: 0


- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.NODE_VERSION }}
cache: 'npm'
cache-dependency-path: '**/*/package-lock.json'

- name: Install Dependencies
env:
NODE_AUTH_TOKEN: ${{ env.github_token }}
run: npm ci
shell: bash
- name: Install git
run: |
apt-get update && apt-get install -y git
# Workaround for git not working in two separate folders
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
path: ${{ github.workspace }}

- name: Install git
run: |
apt-get update && apt-get install -y git
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Install Dependencies
env:
NODE_AUTH_TOKEN: ${{ env.github_token }}
run: npm ci
shell: bash

- name: Run affected lint and build
run: npx nx affected -t lint build --base=origin/main --head=HEAD

0 comments on commit 09f12bb

Please sign in to comment.