From fd94bdd728fea59f3aca9fea17fa8261ff199e19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8B=AE=E5=AD=90=E8=80=97=E8=80=97?= Date: Mon, 2 Feb 2026 00:28:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=B7=A5=E4=BD=9C=E6=B5=81?= =?UTF-8?q?=EF=BC=8C=E8=BF=81=E7=A7=BB=E5=88=B0Bun=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E9=93=BE=E5=B9=B6=E5=8D=87=E7=BA=A7Node.js=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yaml | 16 +++++++--------- .gitea/workflows/dev.yaml | 16 +++++++--------- 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 1b68577..4b68216 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -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 diff --git a/.gitea/workflows/dev.yaml b/.gitea/workflows/dev.yaml index 2d7ffe2..1f4dbfe 100644 --- a/.gitea/workflows/dev.yaml +++ b/.gitea/workflows/dev.yaml @@ -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