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 6416ebb commit 71776baCopy full SHA for 71776ba
build/release.sh
@@ -1,8 +1,11 @@
1
set -e
2
-echo "Enter release version: "
3
-read VERSION
4
5
-read -p "Releasing $VERSION - are you sure? (y/n)" -n 1 -r
+read -p "Enter release version: " VERSION
+read -p "Enter release tag (latest): " TAG
+
6
+TAG=${TAG:-latest}
7
8
+read -p "Releasing $VERSION for the tag '$TAG' - are you sure? (y/n)" -n 1 -r
9
echo # (optional) move to a new line
10
if [[ $REPLY =~ ^[Yy]$ ]]
11
then
@@ -22,5 +25,5 @@ then
22
25
# publish
23
26
git push origin refs/tags/v$VERSION
24
27
git push
- npm publish
28
+ npm publish --tag $TAG
29
fi
0 commit comments