fix release script tag handling

This commit is contained in:
Evan You 2017-02-24 18:26:08 -05:00
parent e7a2510e63
commit 6468e15194

View File

@ -30,18 +30,18 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
cd packages/vue-template-compiler
npm version $VERSION
if [[ -z $RELEASE_TAG ]]; then
npm publish --tag $RELEASE_TAG
else
npm publish
else
npm publish --tag $RELEASE_TAG
fi
cd -
cd packages/vue-server-renderer
npm version $VERSION
if [[ -z $RELEASE_TAG ]]; then
npm publish --tag $RELEASE_TAG
else
npm publish
else
npm publish --tag $RELEASE_TAG
fi
cd -
@ -54,8 +54,8 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
git push origin refs/tags/v$VERSION
git push
if [[ -z $RELEASE_TAG ]]; then
npm publish --tag $RELEASE_TAG
else
npm publish
else
npm publish --tag $RELEASE_TAG
fi
fi