Skip to content

Commit

Permalink
ci: adds next cache
Browse files Browse the repository at this point in the history
  • Loading branch information
DavDeDev committed May 3, 2024
1 parent 7421b1a commit 52912ee
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Restore cache
uses: actions/cache@v4
with:
path: |
.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock','**/pnpm-lock.yaml') }}-${{ 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', '**/yarn.lock','**/pnpm-lock.yaml') }}-
- run: pnpm install --frozen-lockfile

# - name: Set SENTRY_AUTH_TOKEN env if secret exists
Expand Down

0 comments on commit 52912ee

Please sign in to comment.