Skip to content

Commit 4f4a5c4

Browse files
committed
👷 cache nextjs build output
1 parent a95336c commit 4f4a5c4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build-and-push-images.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ jobs:
1919
steps:
2020
- name: Checkout
2121
uses: actions/checkout@v4
22+
- name: Cache nextjs build output
23+
uses: actions/cache@v4
24+
with:
25+
path: ${{ github.workspace }}/.next/cache
26+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm -lock.yaml') }}-${{ hashFiles('**/*.js', '**/*.mjs', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
27+
restore-keys: |
28+
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
2229
- uses: pnpm/action-setup@646cdf48217256a3d0b80361c5a50727664284f2
2330
with:
2431
version: 8.15.9

0 commit comments

Comments
 (0)