Skip to content

Commit 2055b0d

Browse files
committed
allow release script to specify publish tag
1 parent 6804946 commit 2055b0d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build/release.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,9 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
4545
# publish
4646
git push origin refs/tags/v$VERSION
4747
git push
48-
npm publish
48+
if [[ -z $RELEASE_TAG ]]; then
49+
npm publish --tag $RELEASE_TAG
50+
else
51+
npm publish
52+
fi
4953
fi

0 commit comments

Comments
 (0)