Skip to content

Commit

Permalink
feat: stop release if no gems have been updated
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
bethesque committed Jul 10, 2018
1 parent 65370a9 commit ade61be
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions script/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
set -e

bundle exec rake package:update
bundle exec bump ${1:-minor} --no-commit
bundle exec rake generate_changelog
git add VERSION CHANGELOG.md
git commit -m "chore(release): version $(cat VERSION)" && git push origin master
bundle exec rake tag_for_release

if git log -1 | grep "feat(gems)"; then
bundle exec bump ${1:-minor} --no-commit
bundle exec rake generate_changelog
git add VERSION CHANGELOG.md
git commit -m "chore(release): version $(cat VERSION)" && git push origin master
bundle exec rake tag_for_release
else
echo "No gems updated, not releasing"
fi

0 comments on commit ade61be

Please sign in to comment.