mirror of
https://github.com/pnpm/action-setup.git
synced 2026-04-19 05:09:53 +08:00
fix: pnpm self-update binary shadowed by bootstrap on PATH (#230)
Problem pnpm self-update installs the target version to PNPM_HOME/bin/pnpm, but the bootstrap binary at PNPM_HOME/pnpm has higher PATH precedence because addPath(pnpmHome) was called after addPath(pnpmHome/bin). @actions/core's addPath prepends, so the later call wins — the bootstrap version shadows the self-updated binary. Fix Swap the addPath call order so PNPM_HOME/bin (where self-update puts the target binary) has higher PATH precedence. The bootstrap pnpm is invoked via absolute path, so this doesn't affect the bootstrap step.
This commit is contained in:
299
dist/index.js
vendored
299
dist/index.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user