|
@@ -1,8 +1,11 @@
|
|
set -e
|
|
set -e
|
|
-echo "Enter release version: "
|
|
|
|
-read VERSION
|
|
|
|
|
|
|
|
-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
|
|
|
|
+
|
|
|
|
+TAG=${TAG:-latest}
|
|
|
|
+
|
|
|
|
+read -p "Releasing $VERSION for the tag '$TAG' - are you sure? (y/n)" -n 1 -r
|
|
echo # (optional) move to a new line
|
|
echo # (optional) move to a new line
|
|
if [[ $REPLY =~ ^[Yy]$ ]]
|
|
if [[ $REPLY =~ ^[Yy]$ ]]
|
|
then
|
|
then
|
|
@@ -22,5 +25,5 @@ then
|
|
# publish
|
|
# publish
|
|
git push origin refs/tags/v$VERSION
|
|
git push origin refs/tags/v$VERSION
|
|
git push
|
|
git push
|
|
- npm publish
|
|
|
|
|
|
+ npm publish --tag $TAG
|
|
fi
|
|
fi
|