mirror of
https://github.com/primer/css.git
synced 2024-12-19 04:01:49 +03:00
alphanumeric semver sorting is dumb; just get the last one
This commit is contained in:
parent
bd3e187979
commit
a466d91a46
@ -24,8 +24,7 @@ rc_version=$(
|
||||
npm info "$package@$npm_tag" --json \
|
||||
| jq -r '.versions[]' \
|
||||
| grep "^${rc_prefix/./\.}" \
|
||||
| sort -r \
|
||||
| head -1
|
||||
| tail -1
|
||||
)
|
||||
# if there isn't one, use the current local version
|
||||
if [[ "$rc_version" == "" ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user