fix build?

This commit is contained in:
lilingfeng 2024-08-13 13:56:46 +08:00
parent 7763711a64
commit fb535fe769
3 changed files with 5 additions and 6 deletions

View File

@ -15,7 +15,6 @@ jobs:
- name: "setup node" - name: "setup node"
uses: "actions/setup-node@v4" uses: "actions/setup-node@v4"
with: with:
cache: "pnpm"
node-version: 20 node-version: 20
- name: Install and Build - name: Install and Build
run: pnpm install && pnpm run build run: pnpm install && pnpm run build

View File

@ -32,11 +32,12 @@ jobs:
- name: "setup node" - name: "setup node"
uses: "actions/setup-node@v4" uses: "actions/setup-node@v4"
with: with:
cache: "pnpm"
node-version: 20 node-version: 20
# 安装 Npm 并构建 # 安装 Npm 并构建
- name: Install and Build - name: Install
run: pnpm install && pnpm run build run: pnpm install
- name: Build
run: pnpm run build
# 部署 # 部署
- name: Deploy - name: Deploy
uses: JamesIves/github-pages-deploy-action@v4 uses: JamesIves/github-pages-deploy-action@v4

View File

@ -12,8 +12,7 @@
"serve": "docusaurus serve", "serve": "docusaurus serve",
"test": "docusaurus build && docusaurus serve", "test": "docusaurus build && docusaurus serve",
"write-translations": "docusaurus write-translations", "write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids", "write-heading-ids": "docusaurus write-heading-ids"
"patch": "patch-package"
}, },
"dependencies": { "dependencies": {
"@docusaurus/core": "^3.5.1", "@docusaurus/core": "^3.5.1",