Skip to content

Commit 5a7c421

Browse files
authored
ci: cache build output and deps (#19)
1 parent b2e59ca commit 5a7c421

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,21 @@ jobs:
2525
node-version: ${{ matrix.node-version }}
2626
cache: 'pnpm'
2727

28+
- name: Cache pnpm store
29+
uses: actions/cache@v4
30+
with:
31+
path: ~/.pnpm-store
32+
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
33+
restore-keys: |
34+
${{ runner.os }}-pnpm-
35+
36+
- name: Cache Next.js build cache
37+
uses: actions/cache@v4
38+
with:
39+
path: .next/cache
40+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
41+
restore-keys: |
42+
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
43+
2844
- run: pnpm install --frozen-lockfile
2945
- run: pnpm build

0 commit comments

Comments
 (0)