We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a994f34 commit cd4cf14Copy full SHA for cd4cf14
dev/bump-version
@@ -8,6 +8,10 @@ git rev-parse --abbrev-ref HEAD | grep -q main
8
git diff-index --quiet HEAD --
9
10
NEW_VERSION="$1"
11
+if ! [[ "$NEW_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
12
+ echo "You need to specify a version number in the format X.Y.Z"
13
+ exit 1
14
+fi
15
16
echo "Updating package.json."
17
yarn version --no-git-tag-version --new-version "$NEW_VERSION"
0 commit comments