We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b9e2e3 commit c13d2f5Copy full SHA for c13d2f5
1 file changed
scripts/publish_prod.sh
@@ -46,8 +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 =~ [0-9]+\.[0-9]+\.[0-9]+ ]]; then
50
- 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)"
51
52
else
53
VERSION=$1
0 commit comments