chore(ci): 更新文档发布工作流以使用 Bun.js

- 将 Node.js 设置替换为 Bun.js 安装
- 更新依赖安装命令从 npm 到 bun
- 更新构建命令从 npm run build 到 bun run build
- 移除缓存配置选项
This commit is contained in:
GeWuYou 2026-02-11 13:27:23 +08:00 committed by gewuyou
parent 5e92232cc6
commit d147bc01fe

View File

@ -31,24 +31,20 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
# 2⃣ 安装 Node.js # 2⃣ 安装 Bun.js
- name: Setup Node - uses: oven-sh/setup-bun@v2
uses: actions/setup-node@v4
with: with:
node-version: 20 bun-version: latest
cache: 'npm'
# 3⃣ 安装依赖 # 3⃣ 安装依赖
- name: Install Dependencies - name: Install Dependencies
run: | run: |
cd docs cd docs
npm install bun install
# 4⃣ 构建 VitePress # 4⃣ 构建 VitePress
- name: Build VitePress - name: Build VitePress
run: | run: |
cd docs cd docs
npm run build bun run build
# 5⃣ 上传构建产物 # 5⃣ 上传构建产物
- name: Upload Pages Artifact - name: Upload Pages Artifact