Skip to content

Commit 281903d

Browse files
committed
feat(ci): Cache build dependencies
1 parent b67e481 commit 281903d

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/next.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,22 @@ jobs:
2626
with:
2727
bun-version: latest
2828

29+
- name: Cache dependencies
30+
id: cache
31+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
32+
with:
33+
path: |
34+
~/.bun/install/cache
35+
${{ github.workspace }}/.next/cache
36+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lock') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
37+
restore-keys: |
38+
${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lock') }}-
39+
2940
- name: Install dependencies
30-
run: bun install --frozen-lockfile
41+
if: steps.cache.outputs.cache-hit != 'true'
42+
run: bun ci
3143

3244
- name: Build with Next.js
45+
env:
46+
NEXT_TELEMETRY_DISABLED: 1
3347
run: bun run build

0 commit comments

Comments
 (0)