更新工作流,替换 pnpm 为 Bun 作为依赖管理工具
All checks were successful
Checking-doc / build-and-deploy (pull_request) Successful in 1m11s

This commit is contained in:
2026-02-02 00:26:38 +08:00
parent 21988ed709
commit 512f846c5b
2 changed files with 13 additions and 15 deletions

View File

@@ -21,22 +21,21 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: pnpm/action-setup@v4 - name: 🔧Install Bun
name: 🔧Install pnpm uses: oven-sh/setup-bun@v2
with: with:
run_install: false bun-version: latest
- name: 🔧Install Node.js - name: 🔧Install Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 20 node-version: 22
cache: 'pnpm'
- name: 🔧Install dependencies - name: 🔧Install dependencies
run: pnpm install run: bun install
- name: 🔴Build doc - name: 🔴Build doc
run: pnpm run docs:build run: bun run docs:build
- name: 🚀 Deploy to Cloudflare Pages - name: 🚀 Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3 uses: cloudflare/wrangler-action@v3

View File

@@ -18,22 +18,21 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: pnpm/action-setup@v4 - name: 🔧Install Bun
name: 🔧Install pnpm uses: oven-sh/setup-bun@v2
with: with:
run_install: false bun-version: latest
- name: 🔧Install Node.js - name: 🔧Install Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v6
with: with:
node-version: 20 node-version: 22
cache: 'pnpm'
- name: 🔧Install dependencies - name: 🔧Install dependencies
run: pnpm install run: bun install
- name: 🔴Build doc - name: 🔴Build doc
run: pnpm run docs:build run: bun run docs:build
- name: 🚀 Deploy to Cloudflare Pages - name: 🚀 Deploy to Cloudflare Pages
id: deploy id: deploy