mirror of
https://github.com/primer/css.git
synced 2024-12-21 05:01:45 +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 \
|
npm info "$package@$npm_tag" --json \
|
||||||
| jq -r '.versions[]' \
|
| jq -r '.versions[]' \
|
||||||
| grep "^${rc_prefix/./\.}" \
|
| grep "^${rc_prefix/./\.}" \
|
||||||
| sort -r \
|
| tail -1
|
||||||
| head -1
|
|
||||||
)
|
)
|
||||||
# if there isn't one, use the current local version
|
# if there isn't one, use the current local version
|
||||||
if [[ "$rc_version" == "" ]]; then
|
if [[ "$rc_version" == "" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user