From 55e66894bdee707dd8f895bc8fa9f119dea5a58f Mon Sep 17 00:00:00 2001 From: Lyda <1829913225@qq.com> Date: Sat, 11 Oct 2025 18:42:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E8=B7=B3=E8=BF=87pnp?= =?UTF-8?q?m-setup=E9=80=89=E9=A1=B9=E4=BB=A5=E6=94=AF=E6=8C=81=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89pnpm=E5=AE=89=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- npm-install/action.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/npm-install/action.yml b/npm-install/action.yml index 6558718..dc206e4 100644 --- a/npm-install/action.yml +++ b/npm-install/action.yml @@ -15,6 +15,11 @@ inputs: required: false default: '10' + skip-pnpm-setup: + description: '当 package-manager=pnpm 时是否跳过 pnpm/action-setup (true/false)' + required: false + default: 'false' + cache-mode: description: '缓存模式:node_modules 或 store' required: false @@ -129,7 +134,7 @@ runs: echo "缓存key: ${CACHE_KEY}" - name: 确保 pnpm 可用 - if: inputs.package-manager == 'pnpm' + if: inputs.package-manager == 'pnpm' && inputs.skip-pnpm-setup != 'true' uses: pnpm/action-setup@v4 with: version: ${{ inputs.pnpm-version }}