From 9b5e610cfda197190625e3d4f4d8d86b5d7dfd43 Mon Sep 17 00:00:00 2001 From: sparksfly Date: Fri, 21 Aug 2026 16:57:28 +0800 Subject: [PATCH] =?UTF-8?q?ci(github=20workflows):=20=E8=B0=83=E6=95=B4pnp?= =?UTF-8?q?m=E5=92=8Cnodejs=E5=AE=89=E8=A3=85=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将pnpm安装提前到setup-node之前,适配pnpm缓存配置要求 --- .github/workflows/release.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 18c4961..399e374 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,19 +30,19 @@ jobs: - name: Checkout uses: actions/checkout@v5 - # 2. 安装 Node.js + # 2. 安装 pnpm(必须先于 setup-node 的 pnpm 缓存) + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 11 + + # 3. 安装 Node.js - name: Setup Node uses: actions/setup-node@v5 with: node-version: lts/* cache: "pnpm" - # 3. 安装 pnpm - - name: Install pnpm - uses: pnpm/action-setup@v6 - with: - version: 11 - # 4. 安装 Rust - name: Setup Rust uses: dtolnay/rust-toolchain@stable