Skip to content

Commit

Permalink
chore($release): hoist npm release
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Jun 8, 2018
1 parent 9d42057 commit c7c0cd9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c7c0cd9

Please sign in to comment.