pnpm: exclude prereleases from update script
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user