Skip to content

Commit

Permalink
Add action cache config for webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
ihavecoke committed Jun 19, 2024
1 parent 3b14e5a commit cb522bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ jobs:
node-version: 18
cache: yarn

- name: Webpack cache
uses: actions/cache@v4
with:
path: ./node_modules/.cache
key: ${{ runner.os }}-webpack-cache

- name: install dependency npm
run: yarn

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"start": "docusaurus start --port 4040",
"dev": "npm run start",
"dev:zh-CN": "npm run start --locale zh-CN",
"build": "npm run clear && docusaurus build --out-dir ./dist",
"build": "docusaurus build --out-dir ./dist",
"dev:build": "docusaurus build --out-dir ./dist",
"postbuild": "sh ./setup-dist-dir.sh",
"swizzle": "docusaurus swizzle",
Expand Down Expand Up @@ -65,4 +65,4 @@
"engines": {
"node": ">=18.0"
}
}
}

0 comments on commit cb522bc

Please sign in to comment.