mirror of
https://github.com/pnpm/action-setup.git
synced 2026-06-19 18:51:16 +08:00
Compare commits
base: actions:fix/233
actions:master
actions:update-pnpm
actions:fix-standalone-windows-path
actions:fix/233
actions:fix/252
actions:fix/247
actions:fix/240
actions:test-reproduce-version-issues
actions:fix-windows2
actions:fix-windows
actions:dev-engines-pm
actions:fix/pn-pnx-alias-links
actions:next
actions:fix/add-pnpm-home-bin-to-path
actions:update-node
actions:fix-ci-macos
actions:refactor-remove-star-imports
actions:update-pnpm-test
actions:remove-v2-warning
actions:v2
actions:fix/135
actions:dependabot/npm_and_yarn/undici-5.28.4
actions:v3
actions:bundle
actions:feat/18
actions:pnpm-v7-test
actions:add-to-path
actions:install-command
actions:inspect-is-post
actions:fixing-windows
actions:v6
actions:v6.0.9
actions:v6.0.8
actions:v6.0.7
actions:v6.0.6
actions:v6.0.5
actions:v6.0.4
actions:v6.0.3
actions:v6.0.2
actions:v6.0.1
actions:v6.0.0
actions:v4
actions:v5.0.0
actions:v5
actions:v4.4.0
actions:v4.3.0
actions:v4.2.0
actions:v4.1.0
actions:v2.4.1
actions:v4.0.0
actions:v3.0.0
actions:v2.4.0
actions:v2.3.0
actions:v2.2.4
actions:v2.2.3
actions:v2.2.2
actions:v2.2.1
actions:v2.2.0
actions:v2.1.0
actions:v2.0.1
actions:v2.0.0
actions:v2.0.0-rc.0
actions:v1.2.1
actions:v1.2.0
actions:v1.1.1
actions:v1.1.0
actions:v1
actions:v1.0.0
..
compare: actions:v6.0.7
actions:master
actions:update-pnpm
actions:fix-standalone-windows-path
actions:fix/233
actions:fix/252
actions:fix/247
actions:fix/240
actions:test-reproduce-version-issues
actions:fix-windows2
actions:fix-windows
actions:dev-engines-pm
actions:fix/pn-pnx-alias-links
actions:next
actions:fix/add-pnpm-home-bin-to-path
actions:update-node
actions:fix-ci-macos
actions:refactor-remove-star-imports
actions:update-pnpm-test
actions:remove-v2-warning
actions:v2
actions:fix/135
actions:dependabot/npm_and_yarn/undici-5.28.4
actions:v3
actions:bundle
actions:feat/18
actions:pnpm-v7-test
actions:add-to-path
actions:install-command
actions:inspect-is-post
actions:fixing-windows
actions:v6
actions:v6.0.9
actions:v6.0.8
actions:v6.0.7
actions:v6.0.6
actions:v6.0.5
actions:v6.0.4
actions:v6.0.3
actions:v6.0.2
actions:v6.0.1
actions:v6.0.0
actions:v4
actions:v5.0.0
actions:v5
actions:v4.4.0
actions:v4.3.0
actions:v4.2.0
actions:v4.1.0
actions:v2.4.1
actions:v4.0.0
actions:v3.0.0
actions:v2.4.0
actions:v2.3.0
actions:v2.2.4
actions:v2.2.3
actions:v2.2.2
actions:v2.2.1
actions:v2.2.0
actions:v2.1.0
actions:v2.0.1
actions:v2.0.0
actions:v2.0.0-rc.0
actions:v1.2.1
actions:v1.2.0
actions:v1.1.1
actions:v1.1.0
actions:v1
actions:v1.0.0
1 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
739bfe42ca |
fix: self-update bootstrap to packageManager-pinned version (#233) (#256)
* fix: self-update bootstrap to packageManager-pinned version (#233) When package.json pins pnpm via `packageManager` or an exact `devEngines.packageManager.version`, self-update the bootstrap up front. The bootstrap's `pnpm store path` skips pnpm's auto-switch (the `store` command sets `skipPackageManagerCheck = true`), so it reports the bootstrap's `STORE_VERSION` while the user's actual install runs under the pinned version and writes to a different STORE_VERSION — breaking `cache: true` and `setup-node`'s `cache: pnpm` on cold caches. * fix: check bin/ dir instead of pnpm.exe for self-update detection On Windows pnpm self-update writes `.bin/bin/pnpm` (a JS launcher), not `.bin/bin/pnpm.exe`, so the previous existsSync probe always fell back to pnpmHome and the bin_dest output pointed at the bootstrap pnpm. Check whether the `bin` directory itself exists. * fix: self-update accepts ranges; drop exact-semver gate `pnpm self-update` resolves semver ranges to a specific version, so `devEngines.packageManager.version: ">=10 <11"` can also go through the self-update path. That makes readTargetVersion total — it always returns a string or throws — so the runtime auto-switch fallback (and the `pnpm_config_pm_on_fail=download` export from #252) is no longer reachable and gets removed. Adds a range case to the cache_store_path matrix. |