mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-08 08:53:06 +00:00
use npm to install pnpm for rln ci
This commit is contained in:
parent
71a3a033f2
commit
d0dd6d3558
@ -17,26 +17,13 @@ if command -v pnpm &> /dev/null; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# Install pnpm using the standalone installer
|
# Install pnpm using npm
|
||||||
if [ -n "$REQUIRED_PNPM_VERSION" ]; then
|
if [ -n "$REQUIRED_PNPM_VERSION" ]; then
|
||||||
echo "Installing pnpm version $REQUIRED_PNPM_VERSION..."
|
echo "Installing pnpm version $REQUIRED_PNPM_VERSION..."
|
||||||
curl -fsSL https://get.pnpm.io/install.sh | env PNPM_VERSION=$REQUIRED_PNPM_VERSION sh -
|
npm install -g pnpm@$REQUIRED_PNPM_VERSION
|
||||||
else
|
else
|
||||||
echo "Installing latest pnpm..."
|
echo "Installing latest pnpm..."
|
||||||
curl -fsSL https://get.pnpm.io/install.sh | sh -
|
npm install -g pnpm
|
||||||
fi
|
|
||||||
|
|
||||||
# Set PNPM_HOME and add to PATH (same as what the installer adds to .bashrc)
|
|
||||||
export PNPM_HOME="$HOME/.local/share/pnpm"
|
|
||||||
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