Skip to content

Commit

Permalink
re-add next cache
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleClapton committed Nov 1, 2024
1 parent 8f50823 commit 3956f3e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ jobs:
- name: Install dependencies
run: yarn install --immutable

- name: Load Next Cache
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/dist/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
restore-keys: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-

- name: Build
run: yarn build
env:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ jobs:
node-version-file: '.nvmrc'
cache: 'yarn'

- name: Load Next Cache
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/dist/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
restore-keys: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-

- name: Install dependencies
run: yarn install --immutable

Expand Down

0 comments on commit 3956f3e

Please sign in to comment.