Skip to content

Commit bc034d3

Browse files
committed
also respect release tag for sub packages
1 parent 7775da2 commit bc034d3

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Diff for: build/release.sh

+10-2
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,20 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
2929
# update packages
3030
cd packages/vue-template-compiler
3131
npm version $VERSION
32-
npm publish
32+
if [[ -z $RELEASE_TAG ]]; then
33+
npm publish --tag $RELEASE_TAG
34+
else
35+
npm publish
36+
fi
3337
cd -
3438

3539
cd packages/vue-server-renderer
3640
npm version $VERSION
37-
npm publish
41+
if [[ -z $RELEASE_TAG ]]; then
42+
npm publish --tag $RELEASE_TAG
43+
else
44+
npm publish
45+
fi
3846
cd -
3947

4048
# commit

0 commit comments

Comments
 (0)