From 988528ca40b9584265182feaaf7c05e1ed82e3f9 Mon Sep 17 00:00:00 2001 From: Jens Troeger Date: Wed, 22 May 2024 15:15:14 +1000 Subject: [PATCH] fix(ci): commitizen and CI should fail if the bumped version strings contain inconsistent version numbers --- .github/workflows/release.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2415e306..336bd254 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -65,8 +65,10 @@ jobs: # In some cases a user may merge commits that don't cause a version bump, which causes commitizen # to fail with error code 21 (NoneIncrementExit). Thus we silence that particular error to avoid # failing this job: https://commitizen-tools.github.io/commitizen/bump/#avoid-raising-errors + # Furthermore, if the version strings have inconsistent versions then `cz` and CI fail such that + # the issue can be inspected and fixed. - name: Create changelog and bump - run: cz --no-raise 21 bump --changelog --yes + run: cz --no-raise 21 bump --changelog --check-consistency --yes - name: Push the release run: |