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