Skip to content

Commit

Permalink
ci: fix node_modules cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
homj committed Dec 15, 2023
1 parent ab946e9 commit 5dd6393
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
uses: actions/cache@v3
with:
path: node_modules
key: cache-node-modules-${{ hashFiles('package-lock.json') }}
key: cache-node-modules-${{ hashFiles('package-lock.json', '.nvmrc') }}

- run: npx nx affected --target=lint --parallel=3 --base=origin/develop

Expand All @@ -59,7 +59,7 @@ jobs:
uses: actions/cache@v3
with:
path: node_modules
key: cache-node-modules-${{ hashFiles('package-lock.json') }}
key: cache-node-modules-${{ hashFiles('package-lock.json', '.nvmrc') }}

- run: npx nx affected --target=test --parallel=3 --configuration=ci --base=origin/develop --codeCoverage

Expand All @@ -81,7 +81,7 @@ jobs:
uses: actions/cache@v3
with:
path: node_modules
key: cache-node-modules-${{ hashFiles('package-lock.json') }}
key: cache-node-modules-${{ hashFiles('package-lock.json', '.nvmrc') }}

- run: npx nx affected:build --parallel=3 --base=origin/develop --verbose

Expand Down

0 comments on commit 5dd6393

Please sign in to comment.