Skip to content

Commit

Permalink
build: run changelog before pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Jul 24, 2019
1 parent 674c6d6 commit d6ba930
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,17 @@ then
git commit -m "build: bundle $VERSION"
npm version $VERSION --message "chore(release): %s"

echo "Please check the git history and press enter"
# changelog
npm run changelog
echo "Please check the git history and the changelog and press enter"
read OKAY
git add CHANGELOG.md
git commit -m "chore(changelog): $VERSION"

# publish
git push origin refs/tags/v$VERSION
git push
npm publish

# changelog
npm run changelog
echo "Please check the changelog and press enter"
read OKAY
git add CHANGELOG.md
git commit -m "chore(changelog): $VERSION"
git push
fi

0 comments on commit d6ba930

Please sign in to comment.