Skip to content

chore: checks the format of the version number to be released #379

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions dev/bump-version
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ git rev-parse --abbrev-ref HEAD | grep -q main
git diff-index --quiet HEAD --

NEW_VERSION="$1"
if ! [[ "$NEW_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "You need to specify a version number in the format X.Y.Z"
exit 1
fi

echo "Updating package.json."
yarn version --no-git-tag-version --new-version "$NEW_VERSION"
Expand Down
Loading