Skip to content

Commit 71776ba

Browse files
committed
chore: allow specifying release tag
1 parent 6416ebb commit 71776ba

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

build/release.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
set -e
2-
echo "Enter release version: "
3-
read VERSION
42

5-
read -p "Releasing $VERSION - are you sure? (y/n)" -n 1 -r
3+
read -p "Enter release version: " VERSION
4+
read -p "Enter release tag (latest): " TAG
5+
6+
TAG=${TAG:-latest}
7+
8+
read -p "Releasing $VERSION for the tag '$TAG' - are you sure? (y/n)" -n 1 -r
69
echo # (optional) move to a new line
710
if [[ $REPLY =~ ^[Yy]$ ]]
811
then
@@ -22,5 +25,5 @@ then
2225
# publish
2326
git push origin refs/tags/v$VERSION
2427
git push
25-
npm publish
28+
npm publish --tag $TAG
2629
fi

0 commit comments

Comments
 (0)