Skip to content

Commit 84471ff

Browse files
committed
chore: add caching mechanism
1 parent 9ea8e46 commit 84471ff

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/deploy-docs.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ jobs:
1616
with:
1717
node-version: 18
1818
- uses: oven-sh/setup-bun@v1
19+
- uses: actions/cache@v4
20+
with:
21+
path: |
22+
~/.npm
23+
${{ github.workspace }}/.next/cache
24+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lockb') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
25+
restore-keys: |
26+
${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lockb') }}-
1927
- name: Build
2028
run: |
2129
cd docs

0 commit comments

Comments
 (0)