From 1bf43f1975f0ae4ce927654e7d0204f3f5ba8890 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Fri, 15 Dec 2023 18:39:00 +0100 Subject: [PATCH] Revert "get latest pnpm version from GitHub releases" This reverts commit 027519f044ef642d1ee07e7fc3b1650f349e62c6. --- SHASUMS256.txt | 2 +- SHASUMS256.txt.sig | Bin 323 -> 323 bytes install.sh | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SHASUMS256.txt b/SHASUMS256.txt index 1041e88..4469a57 100644 --- a/SHASUMS256.txt +++ b/SHASUMS256.txt @@ -4,5 +4,5 @@ d6e6538b8fa1147a58efac1ed2bf7f3311aecd5d8e1b11c0070794a5c5b151d8 v6.6.js c80817f1dac65ee497fc8ca0b533e497aacfbf951a917ff4652825710bbacda7 v6.14.js 675896fe510fe86a6c4812c46334aafe789a05dd60652cca768b78971ca2b906 v6.16.js be155eed896aa8c7900352c2b28640bcbace13171ec632b0e29f0ac94e5b27d1 v6.32.js -89d38e03ff1a3ba5d74253570d9a8438db6f263c79c756a13b7fce2bd3f93f29 install.sh +f8c728b2048a92948aff1979db70e21e89f410528d2d133112f1e2acc0214b34 install.sh 7881ea9b132eb7c6d12db6f14ca55bbb5d251edf08693d570eac31ad0d00c827 install.ps1 diff --git a/SHASUMS256.txt.sig b/SHASUMS256.txt.sig index 3b5203ec05a57c2624c95708e6224f8487cf9947..813bcb40f055eaa7e8d3be439b5ff00584d95997 100644 GIT binary patch delta 296 zcmV+@0oVS+0>c83B!7?r3>;^0XFzanaBVJWZvYAj5PZL2RVO}dwQHUS{0o2HUhsoE z|Adt0r7-Ga9=q1Xev#EIDDfV2{a6Lu(Md2=1ae^d_d5g)XPBCMk*2ns8SgT0j{-C>`wUAc$%9{pXO&LF|j@Kkq9GP#e0Q6RGBCJ;OqS7#$C8*yW`VxYU4 z>>9^GTA$tF(NHE$^6%Ng3}no}+3rXNqN}@K?a|ix9Oac83B!7(F3>;^0XFzanaBVJWZvYAj5PZL2RVO}dwMN;Ido};od~hGUe}0FO9EQz>Z)u;UvT8hGzT=zv4#^yqGLr z2BdX_=FG-z9(i~6_s=Ipro-38l8OuvgtrT}VLeUq6Gi!*Cx6jqnX#H0EGmnfRz0jN zdDo4!8ABPex(!c?Kz*hPsp>lNRKg`BPx7Kq7`a#QvHH%VCao}w6ac#^j;d|g4xTO~ zLau00qOVd33c(?9{Wr7=k7M-KT_nJTfIwC7TE5EOR>NL1awkk(41IxCG_a*$^}~as u)5OH;C?sxA9wB_HGVuFT^;xz%+TplHUgWGWKSTttV^+8oP{$5e3gCs$@QKI( diff --git a/install.sh b/install.sh index 79f6fc2..9e8c2c5 100644 --- a/install.sh +++ b/install.sh @@ -84,8 +84,8 @@ download_and_install() { platform="$(detect_platform)" arch="$(detect_arch)" || abort "Sorry! pnpm currently only provides pre-built binaries for x86_64/arm64 architectures." if [ -z "${PNPM_VERSION}" ]; then - version_json="$(download "https://api.github.com/repos/pnpm/pnpm/releases")" || abort "Download Error!" - version="$(printf '%s' "${version_json}" | grep '"tag_name"' | head -n 1 | awk -F '"' '/tag_name/ { print substr($4,2) }')" + version_json="$(download "https://registry.npmjs.org/@pnpm/exe")" || abort "Download Error!" + version="$(printf '%s' "${version_json}" | tr '{' '\n' | awk -F '"' '/latest/ { print $4 }')" else version="${PNPM_VERSION}" fi