File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed
Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -17,26 +17,13 @@ if command -v pnpm &> /dev/null; then
1717 fi
1818 fi
1919else
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
You can’t perform that action at this time.
0 commit comments