diff --git a/.github/workflows/canary.yml b/.github/workflows/canary.yml index 047f4a296..e63426f0a 100644 --- a/.github/workflows/canary.yml +++ b/.github/workflows/canary.yml @@ -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 diff --git a/package.json b/package.json index 9868ca3ab..e2c774387 100644 --- a/package.json +++ b/package.json @@ -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", @@ -65,4 +65,4 @@ "engines": { "node": ">=18.0" } -} \ No newline at end of file +}