Skip to content

Commit

Permalink
fix(ci): nextjs docs CI caching
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBoyLeft committed May 1, 2024
1 parent b2dd2fb commit a383241
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,17 @@ jobs:
cache: pnpm
registry-url: 'https://registry.npmjs.org'

- uses: jongwooo/next-cache@v1
- name: Cache NextJS
uses: actions/cache@v4
with:
path: |
~/.npm
${{ github.workspace }}/.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- run: pnpm install --frozen-lockfile && pnpm run build
env:
Expand Down

0 comments on commit a383241

Please sign in to comment.