Skip to content

Commit 166249a

Browse files
committed
build: show version
1 parent 1575a18 commit 166249a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/release.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
set -e
2-
echo "Enter release version: "
2+
echo "Current version:" $(grep version package.json | sed -E 's/^.*"(4[^"]+)".*$/\1/')
3+
echo "Enter release version e.g. 3.3.0: "
34
read VERSION
45

56
read -p "Releasing v$VERSION - are you sure? (y/n)" -n 1 -r
67
echo # (optional) move to a new line
78
if [[ $REPLY =~ ^[Yy]$ ]]
89
then
910
echo "Releasing v$VERSION ..."
10-
npm test
1111

1212
# commit
1313
VERSION=$VERSION npm run build

0 commit comments

Comments
 (0)