`latest` version is by date rather than semantic version order
edoardopirovano opened this issue · comments
Edoardo Pirovano commented
As @aibaars points out, our method of getting the latest
version sorts the versions by date rather than semantic version number:
Line 98 in 32f5b5a
This will break if we release a patch to an old version as that will then be considered the newest version. Instead, he suggests we do something like:
gh api "repos/github/$repo/releases" --jq '.[].tag_name' | sort --version-sort | tail -1