Zoltan Kochan 91ab88e261
Some checks are pending
Test Action / Test with dest (ubuntu-latest, 9.15.5) (push) Waiting to run
Test Action / Test with dest (windows-latest, 9.15.5) (push) Waiting to run
Test Action / Test with standalone (ubuntu-latest) (push) Waiting to run
Test Action / Test with standalone (windows-latest) (push) Waiting to run
Test Action / Test with default inputs (macos-latest, 9.15.5) (push) Waiting to run
Test Action / Test with run_install (null, windows-latest) (push) Waiting to run
Test Action / Test with default inputs (ubuntu-latest, 9.15.5) (push) Waiting to run
Test Action / Test with default inputs (windows-latest, 9.15.5) (push) Waiting to run
Test Action / Test with dest (macos-latest, 9.15.5) (push) Waiting to run
Test Action / Test version input is actually installed (10.33.0, macos-latest) (push) Waiting to run
Test Action / Test version input is actually installed (9.15.5, macos-latest) (push) Waiting to run
Test Action / Test version input is actually installed (9.15.5, ubuntu-latest) (push) Waiting to run
Test Action / Test bin_dest output points to requested version (9.15.5, ubuntu-latest) (push) Waiting to run
Test Action / Test bin_dest output points to requested version (10.33.2, windows-latest) (push) Waiting to run
Test Action / Test packageManager field is respected (10.33.0, macos-latest) (push) Waiting to run
Test Action / Test version input is actually installed (10.33.0, ubuntu-latest) (push) Waiting to run
Test Action / Test version input is actually installed (10.33.0, windows-latest) (push) Waiting to run
Test Action / Test version input is actually installed (9.15.5, windows-latest) (push) Waiting to run
Test Action / Test bin_dest output points to requested version (10.33.2, macos-latest) (push) Waiting to run
Test Action / Test bin_dest output points to requested version (9.15.5, macos-latest) (push) Waiting to run
Test Action / Test bin_dest output points to requested version (10.33.2, ubuntu-latest) (push) Waiting to run
Test Action / Test bin_dest output points to requested version (9.15.5, windows-latest) (push) Waiting to run
Test Action / Test packageManager field is respected (9.15.5, macos-latest) (push) Waiting to run
Test Action / Test packageManager field is respected (10.33.0, windows-latest) (push) Waiting to run
Test Action / Test with devEngines.packageManager (macos-latest, 9.15.5) (push) Waiting to run
Test Action / Test packageManager field is respected (10.33.0, ubuntu-latest) (push) Waiting to run
Test Action / Test packageManager field is respected (9.15.5, ubuntu-latest) (push) Waiting to run
Test Action / Test packageManager field is respected (9.15.5, windows-latest) (push) Waiting to run
Test Action / Test with devEngines.packageManager (windows-latest, >=9.15.0) (push) Waiting to run
Test Action / Test with run_install (null, macos-latest) (push) Waiting to run
Test Action / Test with run_install (global, ubuntu-latest) (push) Waiting to run
Test Action / Test with run_install (null, ubuntu-latest) (push) Waiting to run
Test Action / Test with run_install (global, windows-latest) (push) Waiting to run
Test Action / Test with devEngines.packageManager (macos-latest, >=9.15.0) (push) Waiting to run
Test Action / Test with devEngines.packageManager (ubuntu-latest, 9.15.5) (push) Waiting to run
Test Action / Test with devEngines.packageManager (ubuntu-latest, >=9.15.0) (push) Waiting to run
Test Action / Test with devEngines.packageManager (windows-latest, 9.15.5) (push) Waiting to run
Test Action / Test with run_install (global, macos-latest) (push) Waiting to run
fix: bin_dest output points to self-updated pnpm, not bootstrap (#249)
* fix: bin_dest output points to self-updated pnpm, not bootstrap (#247)

`pnpm self-update <version>` writes the target binary to
`${PNPM_HOME}/bin/`, leaving the bootstrap symlink at `${PNPM_HOME}/pnpm`
untouched. The `bin_dest` output was set to `${PNPM_HOME}`, so consumers
invoking `${{ steps.pnpm.outputs.bin_dest }}/pnpm` got the bootstrap
version (currently 11.0.4) instead of the version they requested.

PATH lookup hid the bug: `${PNPM_HOME}/bin` was prepended ahead of
`${PNPM_HOME}`, so `pnpm` resolved from PATH was the right one. Existing
version-respect tests only checked `pnpm --version`, not `bin_dest`.

Resolve `binDest` inside `runSelfInstaller` (target lives in
`${PNPM_HOME}/bin` after self-update, otherwise stays at `${PNPM_HOME}`)
and plumb it through to `setOutputs`. Add a regression test that invokes
`${bin_dest}/pnpm --version` directly across Linux/macOS/Windows.

* test(ci): pass bin_dest via env to survive Windows backslashes

Direct GitHub-expression interpolation of `${{ steps.pnpm.outputs.bin_dest }}`
into the bash script let bash eat the backslashes in the Windows path
(`C:Usersrunneradminsetup-pnpmnode_modules.binbin/pnpm`), failing with
"No such file or directory". Forward the value via env so the path
reaches bash unmangled.

* build: rebuild dist with clean lockfile-matched deps
2026-05-07 12:58:58 +02:00
..
2022-03-08 10:32:48 +07:00