Skip to content

Commit 17b319b

Browse files
committed
chore: 更新 action
1 parent 038cb80 commit 17b319b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
3939
# 运行文档构建命令
4040
$DOCKER_COMPOSE run --rm mockm-dev \
41-
sh -c "cd doc && cross-env NODE_OPTIONS=--openssl-legacy-provider vuepress build . --config .vuepress/config.github.js"
41+
sh -c "git config --global --add safe.directory /workspace && cd doc && pnpm run build -- --config .vuepress/config.github.js"
4242
4343
- name: Copy test resources
4444
run: |
@@ -89,7 +89,7 @@ jobs:
8989
9090
# 构建服务端包
9191
$DOCKER_COMPOSE run --rm mockm-dev \
92-
sh -c "cd release && pnpm run build"
92+
sh -c "git config --global --add safe.directory /workspace && cd release && pnpm run build"
9393
9494
- name: Get package info
9595
run: |

doc/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"scripts": {
33
"// prestart": "npx shx cp ../README.md ./",
4-
"start": "cross-env NODE_OPTIONS=--openssl-legacy-provider vuepress dev .",
5-
"build": "cross-env NODE_OPTIONS=--openssl-legacy-provider vuepress build ."
4+
"start": "npx cross-env NODE_OPTIONS=--openssl-legacy-provider vuepress dev .",
5+
"build": "npx cross-env NODE_OPTIONS=--openssl-legacy-provider vuepress build ."
66
},
77
"env": {
88
"node": "20.19.4",

0 commit comments

Comments
 (0)