mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
chore(ci): 更新文档发布工作流以使用 Bun.js
- 将 Node.js 设置替换为 Bun.js 安装 - 更新依赖安装命令从 npm 到 bun - 更新构建命令从 npm run build 到 bun run build - 移除缓存配置选项
This commit is contained in:
parent
5e92232cc6
commit
d147bc01fe
14
.github/workflows/publish-docs.yml
vendored
14
.github/workflows/publish-docs.yml
vendored
@ -31,24 +31,20 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# 2️⃣ 安装 Node.js
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
# 2️⃣ 安装 Bun.js
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'npm'
|
||||
|
||||
bun-version: latest
|
||||
# 3️⃣ 安装依赖
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
cd docs
|
||||
npm install
|
||||
|
||||
bun install
|
||||
# 4️⃣ 构建 VitePress
|
||||
- name: Build VitePress
|
||||
run: |
|
||||
cd docs
|
||||
npm run build
|
||||
bun run build
|
||||
|
||||
# 5️⃣ 上传构建产物
|
||||
- name: Upload Pages Artifact
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user