Browse Source

fix release script tag handling

dev
Evan You 8 years ago
parent
commit
6468e15194
  1. 12
      build/release.sh

12
build/release.sh

@ -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

Loading…
Cancel
Save