Skip to content

Commit ade61be

Browse files
committed
feat: stop release if no gems have been updated
[ci skip]
1 parent 65370a9 commit ade61be

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

script/release.sh

+10-5
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33
set -e
44

55
bundle exec rake package:update
6-
bundle exec bump ${1:-minor} --no-commit
7-
bundle exec rake generate_changelog
8-
git add VERSION CHANGELOG.md
9-
git commit -m "chore(release): version $(cat VERSION)" && git push origin master
10-
bundle exec rake tag_for_release
6+
7+
if git log -1 | grep "feat(gems)"; then
8+
bundle exec bump ${1:-minor} --no-commit
9+
bundle exec rake generate_changelog
10+
git add VERSION CHANGELOG.md
11+
git commit -m "chore(release): version $(cat VERSION)" && git push origin master
12+
bundle exec rake tag_for_release
13+
else
14+
echo "No gems updated, not releasing"
15+
fi

0 commit comments

Comments
 (0)