Skip to content

Commit 5f52b3b

Browse files
committed
release script
1 parent 835750e commit 5f52b3b

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ TODOs.md
44
test/e2e/reports
55
test/e2e/screenshots
66
selenium-debug.log
7+
dist/*.gz
8+
dist/*.map

release.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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
6+
echo # (optional) move to a new line
7+
if [[ $REPLY =~ ^[Yy]$ ]]
8+
then
9+
echo "Releasing $VERSION ..."
10+
npm test
11+
npm run build
12+
13+
# commit
14+
git add -A
15+
git commit -m "[build] $VERSION"
16+
npm version $VERSION --message "[release] $VERSION"
17+
18+
# publish
19+
git push origin refs/tags/v$VERSION
20+
git push
21+
npm publish --tag next
22+
fi

0 commit comments

Comments
 (0)