Skip to content

Commit 6b71ba2

Browse files
committed
Version formatting check in build.sh
1 parent c58167e commit 6b71ba2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ if [ -e dist/$TAG ]; then
1111
exit;
1212
fi
1313

14+
if ! [[ $TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-dev.*)?$ ]]; then
15+
echo "Tag must be in the form of v0.6.4"
16+
exit;
17+
fi
18+
1419
echo "--- BUILDING mapbox.js $TAG ---"
1520

1621
echo "Checking out tag..."

0 commit comments

Comments
 (0)