We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1575a18 commit 166249aCopy full SHA for 166249a
scripts/release.sh
@@ -1,13 +1,13 @@
1
set -e
2
-echo "Enter release version: "
+echo "Current version:" $(grep version package.json | sed -E 's/^.*"(4[^"]+)".*$/\1/')
3
+echo "Enter release version e.g. 3.3.0: "
4
read VERSION
5
6
read -p "Releasing v$VERSION - are you sure? (y/n)" -n 1 -r
7
echo # (optional) move to a new line
8
if [[ $REPLY =~ ^[Yy]$ ]]
9
then
10
echo "Releasing v$VERSION ..."
- npm test
11
12
# commit
13
VERSION=$VERSION npm run build
0 commit comments