Skip to content

Commit c4d686d

Browse files
committed
chore: dissallow 'v' in the version
1 parent 1b9e2e3 commit c4d686d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/publish_prod.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ 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 == v* ]]; then
50+
echo "Version should not start with 'v', e.g., use 3.1.4 instead of v3.1.4"
51+
exit 1
4952
elif [[ ! $1 =~ [0-9]+\.[0-9]+\.[0-9]+ ]]; then
5053
echo "Must use a semantic version, e.g., 3.1.4"
5154
exit 1

0 commit comments

Comments
 (0)