更新工作流,迁移到Bun工具链并升级Node.js版本
This commit is contained in:
@@ -21,20 +21,18 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
name: 🔧Install pnpm
|
||||
- name: 🔧Install Bun
|
||||
uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
version: 10
|
||||
run_install: false
|
||||
bun-version: latest
|
||||
|
||||
- name: 🔧Install Node.js
|
||||
uses: actions/setup-node@v4
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'pnpm'
|
||||
node-version: 22
|
||||
|
||||
- name: 🔧Install dependencies
|
||||
run: pnpm install
|
||||
run: bun install
|
||||
|
||||
- name: 📥 Download mdluploader
|
||||
run: wget http://img-kodo.lionhao.top/rust_release/mdluploader.tar.gz -O /tmp/mdluploader.tar.gz
|
||||
@@ -56,7 +54,7 @@ jobs:
|
||||
RUST_LOG: info
|
||||
|
||||
- name: 🔴Build doc
|
||||
run: pnpm run docs:build
|
||||
run: bun run docs:build
|
||||
|
||||
- name: 🚀 Deploy to Cloudflare Pages
|
||||
uses: cloudflare/wrangler-action@v3
|
||||
|
||||
@@ -18,20 +18,18 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
name: 🔧 Install pnpm
|
||||
- name: 🔧Install Bun
|
||||
uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
version: 10
|
||||
run_install: false
|
||||
bun-version: latest
|
||||
|
||||
- name: 🔧 Install Node.js
|
||||
uses: actions/setup-node@v4
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'pnpm'
|
||||
node-version: 22
|
||||
|
||||
- name: 🔧 Install dependencies
|
||||
run: pnpm install
|
||||
run: bun install
|
||||
|
||||
- name: 📥 Download mdluploader
|
||||
run: |
|
||||
@@ -55,7 +53,7 @@ jobs:
|
||||
RUST_LOG: trace
|
||||
|
||||
- name: 🔴 Build doc
|
||||
run: pnpm run docs:build
|
||||
run: bun run docs:build
|
||||
|
||||
- name: 🚀 Deploy to Cloudflare Pages
|
||||
id: deploy
|
||||
|
||||
Reference in New Issue
Block a user