Skip to content

Commit d0dd6d3

Browse files
committed
use npm to install pnpm for rln ci
1 parent 71a3a03 commit d0dd6d3

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

scripts/install_pnpm.sh

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,13 @@ if command -v pnpm &> /dev/null; then
1717
fi
1818
fi
1919
else
20-
# Install pnpm using the standalone installer
20+
# Install pnpm using npm
2121
if [ -n "$REQUIRED_PNPM_VERSION" ]; then
2222
echo "Installing pnpm version $REQUIRED_PNPM_VERSION..."
23-
curl -fsSL https://get.pnpm.io/install.sh | env PNPM_VERSION=$REQUIRED_PNPM_VERSION sh -
23+
npm install -g pnpm@$REQUIRED_PNPM_VERSION
2424
else
2525
echo "Installing latest pnpm..."
26-
curl -fsSL https://get.pnpm.io/install.sh | sh -
27-
fi
28-
29-
# Set PNPM_HOME and add to PATH (same as what the installer adds to .bashrc)
30-
export PNPM_HOME="$HOME/.local/share/pnpm"
31-
case ":$PATH:" in
32-
*":$PNPM_HOME:"*) ;;
33-
*) export PATH="$PNPM_HOME:$PATH" ;;
34-
esac
35-
36-
# If running in GitHub Actions, persist the PATH change
37-
if [ -n "$GITHUB_PATH" ]; then
38-
echo "$PNPM_HOME" >> "$GITHUB_PATH"
39-
echo "Added $PNPM_HOME to GITHUB_PATH"
26+
npm install -g pnpm
4027
fi
4128

4229
# Verify pnpm was installed

0 commit comments

Comments
 (0)