Skip to content

Commit 3dc2354

Browse files
committed
ci: add caching for Docusaurus build
1 parent 3e6ce0e commit 3dc2354

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/cd_deploy.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ jobs:
3737
- name: Checking Lint
3838
run: npm run lint
3939

40+
- name: Cache Docusaurus
41+
uses: actions/cache@v5
42+
with:
43+
path: |
44+
.docusaurus
45+
node_modules/.cache
46+
key: docusaurus-${{ hashFiles('docusaurus.config.ts', 'package-lock.json') }}
47+
restore-keys: docusaurus-
48+
4049
- name: Building Site
4150
run: npm run build
4251

0 commit comments

Comments
 (0)