We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec809e7 commit 3f61310Copy full SHA for 3f61310
release.sh
@@ -1,4 +1,12 @@
1
-set -ex
2
-git tag $VERSION -a -m "release v$VERSION"
3
-git tag latest -f -a -m "release v$VERSION"
+#!/usr/bin/env bash
+
+set -euf -o pipefail
4
5
+if ! echo "$VERSION" | grep -Eq '^[0-9]+\.[0-9]+\.[0-9]+$'; then
6
+ echo "\$VERSION is not in MAJOR.MINOR.PATCH format"
7
+ exit 1
8
+fi
9
10
+git tag "${VERSION}" -a -m "release v${VERSION}"
11
+git tag latest -f -a -m "release v${VERSION}"
12
git push -f --tags
0 commit comments