5
0
mirror of https://github.com/pnpm/action-setup.git synced 2026-05-08 01:48:28 +00:00
Commit Graph

14 Commits

Author SHA1 Message Date
Zoltan Kochan
624e28f5d0 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.
2026-05-07 08:55:16 +02:00
Jeremiasz Major
e94b270858 feat: store caching (#188)
* add pnpm store caching

* style: format

* no semicolons
* no star imports
* import order

* style: no star imports

---------

Co-authored-by: khai96_ <hvksmr1996@gmail.com>
2025-12-07 22:16:49 +01:00
khai96_
11ba3424e0 fmt 2022-02-23 10:07:15 +07:00
khai96_
c8fc1974e1 Run pnpm store prune post action 2020-05-09 21:15:50 +07:00
khai96_
291e58ad85 Enable post action 2020-05-09 21:02:32 +07:00
khai96_
1790ca7f76 Add pnpm install 2020-05-09 20:24:52 +07:00
khai96_
9a1617cf46 Rename install to install-pnpm 2020-05-09 20:03:45 +07:00
khai96_
087311f996 refactor: Remove then 2020-05-08 21:55:03 +07:00
khai96_
59a67d7671 Support tilde 2020-05-08 14:24:25 +07:00
khai96_
cf0395bd79 Use glob 2020-05-08 14:12:16 +07:00
khai96_
e1bd3c6b13 Use execPath 2020-05-08 13:47:46 +07:00
khai96_
b223fef427 Debug 2020-05-08 13:44:22 +07:00
khai96_
696222a6f3 Complete source code 2020-05-08 13:12:01 +07:00
khai96_
7d62586afe Complete basic 2020-05-08 13:06:16 +07:00