Skip to content

Commit

Permalink
Merge pull request #2 from teaxyz/ensure-semver
Browse files Browse the repository at this point in the history
ensure we get semver
  • Loading branch information
mxcl authored Dec 10, 2024
2 parents fb7d951 + 7aef3af commit 244f144
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Scripts/publish-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ major|minor|patch|prerelease)
echo "usage $0 <major|minor|patch|prerelease|VERSION>" >&2
exit 1;;
*)
if test "$(npx -- semver """$1""")" != "$1"; then
echo "$1 doesn't look like valid semver."
exit 1
fi
v_new=$1
;;
esac
Expand Down

0 comments on commit 244f144

Please sign in to comment.