Skip to content

Commit

Permalink
👷 cache nextjs build output
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredkiss3 committed Sep 12, 2024
1 parent a95336c commit 4f4a5c4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-and-push-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache nextjs build output
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm -lock.yaml') }}-${{ hashFiles('**/*.js', '**/*.mjs', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
- uses: pnpm/action-setup@646cdf48217256a3d0b80361c5a50727664284f2
with:
version: 8.15.9
Expand Down

0 comments on commit 4f4a5c4

Please sign in to comment.