Merge pull request #217 from jamesread/github-actions-build-add-cache
ci: Add cache key to build job
This commit is contained in:
commit
7a81d37d01
|
|
@ -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
|
||||
|
|
@ -33,6 +35,5 @@ jobs:
|
|||
restore-keys: |
|
||||
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
|
||||
|
||||
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
|
|
|
|||
Loading…
Reference in New Issue