Skip to content

Commit

Permalink
ci/cd (#131): consider yarn.lock as the Next cache key instead of the…
Browse files Browse the repository at this point in the history
… npm's package-lock.json
  • Loading branch information
navid-kalaei committed May 13, 2022
1 parent 9f706b3 commit 0bb0081
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ jobs:
~/.npm
${{ github.workspace }}/.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-
- name: Setup python
uses: actions/setup-python@v2
Expand Down

0 comments on commit 0bb0081

Please sign in to comment.