Skip to content

Commit a577a26

Browse files
committed
chore: update release script
1 parent 63ec475 commit a577a26

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

build/release.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
#!/bin/bash
22
set -e
33
read -p "Enter release version: " VERSION
4+
read -p "Enter release tag (latest): " TAG
45

5-
read -p "Releasing $VERSION - are you sure? (y/N) " -n 1 -r
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
@@ -19,5 +22,5 @@ then
1922
# publish
2023
git push origin refs/tags/v$VERSION
2124
git push
22-
npm publish
25+
npm publish --tag $TAG
2326
fi

0 commit comments

Comments
 (0)