You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that hostedtoolcache precedes the pnpm bin. This means that when pnpm env is used it will not override the static bin in hostedtoolcache.
One way to fix this is change the order contrary to the docs of steps, such that node is setup BEFORE pnpm. But that only works if cache: pnpm is NOT used. 🐔 🥚
It also does not work to run pnpm setup after because it will see that pnpm is in the path (just not before hostedtoolcache) and thus do nothing:
Appended new lines to /home/runner/.bashrc
Next configuration changes were made:
export PNPM_HOME="/home/runner/setup-pnpm/node_modules/.bin"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
Are are solutions that permit pnpm env working AND node setup using cache: pnpm? If so, let's document them. If not, let's mention this caveat.
The text was updated successfully, but these errors were encountered:
If user wants to use
pnpm env ...
then the current documentation leads them astray because it yields this$PATH
:Note that
hostedtoolcache
precedes thepnpm
bin. This means that whenpnpm env
is used it will not override the static bin inhostedtoolcache
.One way to fix this is change the order contrary to the docs of steps, such that node is setup BEFORE pnpm. But that only works if
cache: pnpm
is NOT used. 🐔 🥚It also does not work to run
pnpm setup
after because it will see that pnpm is in the path (just not before hostedtoolcache) and thus do nothing:Are are solutions that permit
pnpm env
working AND node setup usingcache: pnpm
? If so, let's document them. If not, let's mention this caveat.The text was updated successfully, but these errors were encountered: