From 26f2b775383ad02f5545ab9ea1fd6f9acf154fe0 Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 24 Sep 2019 14:20:39 +0800 Subject: [PATCH] chore: update release.sh (#2090) --- build/release.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build/release.sh b/build/release.sh index 6a8ad621..bf4f3869 100644 --- a/build/release.sh +++ b/build/release.sh @@ -24,7 +24,13 @@ then # publish git push origin master git push origin refs/tags/v$VERSION - npm publish + + if [[ $VERSION =~ [beta] ]] + then + npm publish --tag beta + else + npm publish + fi # sync dev git checkout dev