Permalink
Browse files

Chore: Add release sh

  • Loading branch information...
antonreshetov committed Jan 3, 2019
1 parent b596712 commit 9075e3531c715e61510df1ddaaed12b376f6cfb5
Showing with 17 additions and 0 deletions.
  1. +17 −0 build/release.sh
@@ -0,0 +1,17 @@
#!/bin/sh

set -e
echo "Enter release version: "
read VERSION

read -p "Releasing $VERSION - are you sure? (y/n)" -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
npm run build:lib
git add -A
git commit -m "Dist: Build $VERSION"
npm version $VERSION -m "Release $VERSION"
git push origin master
npm publish
fi

0 comments on commit 9075e35

Please sign in to comment.