From c4d686d593483d4a3430bf1b5aba815d1d29487f Mon Sep 17 00:00:00 2001 From: Ava Silver Date: Mon, 26 Jan 2026 14:23:26 -0500 Subject: [PATCH 1/2] chore: dissallow 'v' in the version --- scripts/publish_prod.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/publish_prod.sh b/scripts/publish_prod.sh index 55deebc2..9df36f31 100755 --- a/scripts/publish_prod.sh +++ b/scripts/publish_prod.sh @@ -46,6 +46,9 @@ CURRENT_VERSION=$(node -pe "require('./package.json').version") if [ -z "$1" ]; then echo "Must specify a desired version number" exit 1 +elif [[ $1 == v* ]]; then + echo "Version should not start with 'v', e.g., use 3.1.4 instead of v3.1.4" + exit 1 elif [[ ! $1 =~ [0-9]+\.[0-9]+\.[0-9]+ ]]; then echo "Must use a semantic version, e.g., 3.1.4" exit 1 From 51d4644e9fdd660bb73ffbce9e05858c558392ae Mon Sep 17 00:00:00 2001 From: Ava Silver Date: Mon, 26 Jan 2026 14:31:29 -0500 Subject: [PATCH 2/2] simplify --- scripts/publish_prod.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/publish_prod.sh b/scripts/publish_prod.sh index 9df36f31..4634c611 100755 --- a/scripts/publish_prod.sh +++ b/scripts/publish_prod.sh @@ -46,11 +46,8 @@ CURRENT_VERSION=$(node -pe "require('./package.json').version") if [ -z "$1" ]; then echo "Must specify a desired version number" exit 1 -elif [[ $1 == v* ]]; then - echo "Version should not start with 'v', e.g., use 3.1.4 instead of v3.1.4" - exit 1 -elif [[ ! $1 =~ [0-9]+\.[0-9]+\.[0-9]+ ]]; then - 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)" exit 1 else VERSION=$1