From d147bc01fe8b2f6485361926d8e054976de10039 Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Wed, 11 Feb 2026 13:27:23 +0800 Subject: [PATCH] =?UTF-8?q?chore(ci):=20=E6=9B=B4=E6=96=B0=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E5=8F=91=E5=B8=83=E5=B7=A5=E4=BD=9C=E6=B5=81=E4=BB=A5?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=20Bun.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 Node.js 设置替换为 Bun.js 安装 - 更新依赖安装命令从 npm 到 bun - 更新构建命令从 npm run build 到 bun run build - 移除缓存配置选项 --- .github/workflows/publish-docs.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 42d7495..39b2eb2 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -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