Skip to content

Commit 6468e15

Browse files
committed
fix release script tag handling
1 parent e7a2510 commit 6468e15

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

build/release.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
3030
cd packages/vue-template-compiler
3131
npm version $VERSION
3232
if [[ -z $RELEASE_TAG ]]; then
33-
npm publish --tag $RELEASE_TAG
34-
else
3533
npm publish
34+
else
35+
npm publish --tag $RELEASE_TAG
3636
fi
3737
cd -
3838

3939
cd packages/vue-server-renderer
4040
npm version $VERSION
4141
if [[ -z $RELEASE_TAG ]]; then
42-
npm publish --tag $RELEASE_TAG
43-
else
4442
npm publish
43+
else
44+
npm publish --tag $RELEASE_TAG
4545
fi
4646
cd -
4747

@@ -54,8 +54,8 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
5454
git push origin refs/tags/v$VERSION
5555
git push
5656
if [[ -z $RELEASE_TAG ]]; then
57-
npm publish --tag $RELEASE_TAG
58-
else
5957
npm publish
58+
else
59+
npm publish --tag $RELEASE_TAG
6060
fi
6161
fi

0 commit comments

Comments
 (0)