Skip to content

Commit

Permalink
Chore: Skip breaking changes until package is stable
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed Nov 11, 2021
1 parent e1fa6a7 commit 7d8174d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions bin/ci/semver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@ function grep_word_from_git_commits_since_last_tag() {
}

function get_version() {
if [ "$(grep_word_from_git_commits_since_last_tag "BREAKING CHANGE")" -gt 0 ]
then
echo "major"
elif [ "$(grep_word_from_git_commits_since_last_tag "Feat")" -gt 0 ]
##
# TODO: Comment out this code when packages are stable
# if [ `grep_word_from_git_commits_since_last_tag "BREAKING CHANGE"` -gt 0 ]
# then
# echo "major"
# elif [ `grep_word_from_git_commits_since_last_tag "Feat"` -gt 0 ]
# The packages are still unstable so we update only 0.x.x versions (minor and patch)
# however breaking changes are still documented in the changelog
if [ `grep_word_from_git_commits_since_last_tag "BREAKING CHANGE"` -gt 0 ] && [ `grep_word_from_git_commits_since_last_tag "Feat"` -gt 0 ]
then
echo "minor"
else
Expand Down

0 comments on commit 7d8174d

Please sign in to comment.