Skip to content

Commit e0cbf81

Browse files
fix: 调整成bun
1 parent 17d43aa commit e0cbf81

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/doc.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,18 @@ jobs:
3434
fetch-depth: 0 # 如果未启用 lastUpdated,则不需要
3535
# - uses: pnpm/action-setup@v3 # 如果使用 pnpm,请取消注释
3636
# - uses: oven-sh/setup-bun@v1 # 如果使用 Bun,请取消注释
37-
- name: Setup Node
38-
uses: actions/setup-node@v4
39-
with:
40-
node-version: 20
41-
cache: npm # 或 pnpm / yarn
37+
- name: setup bun
38+
uses: oven-sh/setup-bun@v2
39+
4240
- name: Setup Pages
4341
uses: actions/configure-pages@v4
42+
4443
- name: Install dependencies
45-
run: npm ci # 或 pnpm install / yarn install / bun install
44+
run: bun install # 或 pnpm install / yarn install / bun install
4645
working-directory: doc/website
4746

4847
- name: Build with VitePress
49-
run: npm run docs:build # 或 pnpm docs:build / yarn docs:build / bun run docs:build
48+
run: bun run docs:build # 或 pnpm docs:build / yarn docs:build / bun run docs:build
5049
working-directory: doc/website
5150

5251
- name: Upload artifact

0 commit comments

Comments
 (0)