We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4d686d commit 51d4644Copy full SHA for 51d4644
1 file changed
scripts/publish_prod.sh
@@ -46,11 +46,8 @@ CURRENT_VERSION=$(node -pe "require('./package.json').version")
46
if [ -z "$1" ]; then
47
echo "Must specify a desired version number"
48
exit 1
49
-elif [[ $1 == v* ]]; then
50
- echo "Version should not start with 'v', e.g., use 3.1.4 instead of v3.1.4"
51
- exit 1
52
-elif [[ ! $1 =~ [0-9]+\.[0-9]+\.[0-9]+ ]]; then
53
- echo "Must use a semantic version, e.g., 3.1.4"
+elif [[ ! $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
+ echo "Must use a semantic version, e.g., 3.1.4 (note the lack of any \`v\` prefix)"
54
55
else
56
VERSION=$1
0 commit comments