From d6ac493cbf5a2e68a3963b2d4a5b850493fa58af Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Sun, 24 May 2015 11:10:21 -0400 Subject: [PATCH] Update publish script to include NPM publishing --- scripts/publish | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/publish b/scripts/publish index db15d5481..95143ab37 100755 --- a/scripts/publish +++ b/scripts/publish @@ -4,3 +4,12 @@ git checkout production \ && git rebase master \ && git push \ && git checkout master + + +read VERSION_TYPE -p "Major, minor, patch? " +if [[ "$VERSION_TYPE" == "" ]]; then + exit 1 +fi + +npm version "$VERSION_TYPE" +npm publish