update release.sh

This commit is contained in:
陈嘉涵 2019-05-05 10:04:54 +08:00
parent 02dc3e392c
commit a857574908

View File

@ -1,6 +1,3 @@
git checkout master
git merge dev
#!/usr/bin/env sh
set -e
echo "Enter release version: "
@ -19,11 +16,8 @@ then
git commit -am "[release] $VERSION"
# publish
git push origin master
git push origin 1.x
git push origin refs/tags/v$VERSION
git checkout dev
git rebase master
git push origin dev
npm publish
fi