pnpm: exclude prereleases from update script

This commit is contained in:
Gutyina Gergő
2025-07-31 10:04:09 +02:00
parent ac44f39d96
commit 14220c82ac
+5 -1
View File
@@ -91,7 +91,11 @@ stdenvNoCC.mkDerivation (finalAttrs: {
curl -L ''${GITHUB_TOKEN:+" -u \":$GITHUB_TOKEN\""} "$@"
}
latestTag=$(curl_github https://api.github.com/repos/pnpm/pnpm/releases?per_page=100 | jq -r --arg major "v${majorVersion}" '[.[].tag_name | select(startswith($major))][0]')
latestTag=$(
curl_github https://api.github.com/repos/pnpm/pnpm/releases?per_page=100 | \
jq -r --arg major "v${majorVersion}" \
'[.[] | select(.tag_name | startswith($major)) | select(.prerelease == false)][0].tag_name'
)
# Exit if there is no tag with this major version
if [ "$latestTag" = "null" ]; then