mirror of
https://github.com/pnpm/action-setup.git
synced 2026-06-19 01:49:55 +00:00
The bootstrap pnpm binary at PNPM_HOME shadows the self-updated binary at PNPM_HOME/bin because addPath(pnpmHome) was called after addPath(pnpmHome/bin), giving the bootstrap higher PATH precedence. Swap the addPath order so the self-updated binary takes priority. The bootstrap is invoked via absolute path, so this doesn't affect the bootstrap step. Also extract the version from the packageManager field and pass it to self-update explicitly, instead of returning undefined and relying on the bootstrap's auto-switching which can modify the lockfile. Fixes #225, fixes #227, fixes #228 |
||
|---|---|---|
| .. | ||
| index.js | ||