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