Skip to content

Commit 50f4b39

Browse files
committed
chore: 更换管理工具为 yarn,升级 vitepress 版本至 2.0.0-alpha.12
1 parent a76d729 commit 50f4b39

File tree

4 files changed

+1053
-1387
lines changed

4 files changed

+1053
-1387
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,21 @@ jobs:
3232
uses: actions/checkout@v4
3333
with:
3434
fetch-depth: 0 # 如果未启用 lastUpdated,则不需要
35-
- uses: pnpm/action-setup@v3 # 如果使用 pnpm,请取消此区域注释
36-
with:
37-
version: 9
35+
# - uses: pnpm/action-setup@v3 # 如果使用 pnpm,请取消此区域注释
36+
# with:
37+
# version: 9
3838
# - uses: oven-sh/setup-bun@v1 # 如果使用 Bun,请取消注释
3939
- name: Setup Node
4040
uses: actions/setup-node@v4
4141
with:
4242
node-version: 22
43-
cache: pnpm # 或 npm / yarn
43+
cache: yarn # 或 npm / pnpm
4444
- name: Setup Pages
4545
uses: actions/configure-pages@v4
4646
- name: Install dependencies
47-
run: pnpm install # 或 npm ci / yarn install / bun install
47+
run: yarn install # 或 npm ci / pnpm install / bun install
4848
- name: Build with VitePress
49-
run: pnpm docs:build # 或 npm run docs:build / yarn docs:build / bun run docs:build
49+
run: yarn docs:build # 或 npm run docs:build / pnpm docs:build / bun run docs:build
5050
- name: Upload artifact
5151
uses: actions/upload-pages-artifact@v3
5252
with:

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"devDependencies": {
3-
"vitepress": "2.0.0-alpha.11"
3+
"vitepress": "^2.0.0-alpha.12",
4+
"vue": "^3.5.22"
45
},
56
"scripts": {
67
"docs:dev": "vitepress dev",
78
"docs:build": "vitepress build",
89
"docs:preview": "vitepress preview"
910
}
10-
}
11+
}

0 commit comments

Comments
 (0)