From e4ae341fed9eebf3ddf8d95546d0c813a1a13ca0 Mon Sep 17 00:00:00 2001 From: rex-zsd Date: Mon, 6 Apr 2020 15:21:16 +0800 Subject: [PATCH] build(build): update release script --- build/release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/release.sh b/build/release.sh index 1e3366d4..dd8fa26d 100644 --- a/build/release.sh +++ b/build/release.sh @@ -9,7 +9,7 @@ if [[ $REPLY =~ ^[Yy]$ ]] then # build npm run build:lib - if [[ `git status --porcelain` ]]; + if [[ `git status --porcelain` ]]; then git add -A git commit -am "build: compile $VERSION" @@ -19,7 +19,7 @@ then npm version $VERSION --message "build: release $VERSION" # publish - git push origin dev + git push origin 0.x git push origin refs/tags/v$VERSION npm publish fi