mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-02 12:07:39 +08:00
fix release script tag handling
This commit is contained in:
parent
e7a2510e63
commit
6468e15194
@ -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…
Reference in New Issue
Block a user