mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-07 16:33:08 +00:00
Add to github path
This commit is contained in:
parent
3f18f9bffb
commit
71a3a033f2
@ -26,9 +26,17 @@ else
|
|||||||
curl -fsSL https://get.pnpm.io/install.sh | sh -
|
curl -fsSL https://get.pnpm.io/install.sh | sh -
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Source bashrc to load pnpm configuration
|
# Set PNPM_HOME and add to PATH (same as what the installer adds to .bashrc)
|
||||||
if [ -f "$HOME/.bashrc" ]; then
|
export PNPM_HOME="$HOME/.local/share/pnpm"
|
||||||
source "$HOME/.bashrc"
|
case ":$PATH:" in
|
||||||
|
*":$PNPM_HOME:"*) ;;
|
||||||
|
*) export PATH="$PNPM_HOME:$PATH" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# If running in GitHub Actions, persist the PATH change
|
||||||
|
if [ -n "$GITHUB_PATH" ]; then
|
||||||
|
echo "$PNPM_HOME" >> "$GITHUB_PATH"
|
||||||
|
echo "Added $PNPM_HOME to GITHUB_PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Verify pnpm was installed
|
# Verify pnpm was installed
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user