Skip to content

Commit c13d2f5

Browse files
authored
chore: dissallow 'v' in the version (#655)
* chore: dissallow 'v' in the version * simplify
1 parent 1b9e2e3 commit c13d2f5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/publish_prod.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ CURRENT_VERSION=$(node -pe "require('./package.json').version")
4646
if [ -z "$1" ]; then
4747
echo "Must specify a desired version number"
4848
exit 1
49-
elif [[ ! $1 =~ [0-9]+\.[0-9]+\.[0-9]+ ]]; then
50-
echo "Must use a semantic version, e.g., 3.1.4"
49+
elif [[ ! $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
50+
echo "Must use a semantic version, e.g., 3.1.4 (note the lack of any \`v\` prefix)"
5151
exit 1
5252
else
5353
VERSION=$1

0 commit comments

Comments
 (0)