Skip to content

Commit ab619ac

Browse files
authored
fix(ci): commitizen and CI should fail if the bumped version strings contain inconsistent version numbers (#747)
1 parent b7b1fd2 commit ab619ac

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/release.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@ jobs:
6565
# In some cases a user may merge commits that don't cause a version bump, which causes commitizen
6666
# to fail with error code 21 (NoneIncrementExit). Thus we silence that particular error to avoid
6767
# failing this job: https://commitizen-tools.github.io/commitizen/bump/#avoid-raising-errors
68+
# Furthermore, if the version strings have inconsistent versions then `cz` and CI fail such that
69+
# the issue can be inspected and fixed.
6870
- name: Create changelog and bump
69-
run: cz --no-raise 21 bump --changelog --yes
71+
run: cz --no-raise 21 bump --changelog --check-consistency --yes
7072

7173
- name: Push the release
7274
run: |

0 commit comments

Comments
 (0)