Skip to content

Commit

Permalink
Merge pull request #217 from jamesread/github-actions-build-add-cache
Browse files Browse the repository at this point in the history
ci: Add cache key to build job
  • Loading branch information
jamesread authored Sep 9, 2024
2 parents 89127fb + 8c4b26b commit 7a81d37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: |
**/package-lock.json
# https://nextjs.org/docs/pages/building-your-application/deploying/ci-build-caching#github-actions
- uses: actions/cache@v4
Expand All @@ -33,6 +35,5 @@ jobs:
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- run: npm ci
- run: npm run build

0 comments on commit 7a81d37

Please sign in to comment.