fix: use native bootstrap only for pnpm 12

Route pnpm 12-only versions and ranges through the plain pnpm native package while preserving the existing Node and @pnpm/exe bootstrap paths for older releases.
This commit is contained in:
Zoltan Kochan
2026-09-04 17:17:58 +02:00
parent fedb8a2d14
commit c49a02e6a4
11 changed files with 754 additions and 307 deletions
+9 -2
View File
@@ -184,6 +184,8 @@ jobs:
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
with:
@@ -194,15 +196,20 @@ jobs:
npm install --global npm@12.0.2
test "$(npm --version)" = "12.0.2"
- name: Run the action
- id: pnpm
name: Run the action
uses: ./
with:
version: 12.3.4
version: 12
standalone: true
- name: 'Test: pnpm works'
env:
PNPM_DEST: ${{ steps.pnpm.outputs.dest }}
run: |
set -e
test -x "$PNPM_DEST/node_modules/pnpm/pnpm"
test ! -d "$PNPM_DEST/node_modules/@pnpm/exe"
which pnpm
actual="$(pnpm --version)"
if [ "${actual}" != "12.3.4" ]; then