From c7c0cd92a5b2efb9260938d3708179bde0e3d04a Mon Sep 17 00:00:00 2001 From: ULIVZ <472590061@qq.com> Date: Sat, 9 Jun 2018 03:11:40 +0800 Subject: [PATCH] chore($release): hoist npm release --- scripts/release.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/release.sh b/scripts/release.sh index f4f3e2c507..d817e0f51b 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -27,17 +27,16 @@ select VERSION in patch minor major "Specific Version" NEW_VERSION=$(node -p "require('./package.json').version") echo Releasing ${NEW_VERSION} ... + # npm release + npm publish + echo "✅ released to npm" + # github release - npm run prepublishOnly git add CHANGELOG.md git commit -m "chore: changelog" git push git push origin refs/tags/v${NEW_VERSION} echo "✅ released to Github" - - # npm release - npm publish - echo "✅ released to npm" else echo Cancelled fi