Commit fe4d872
pepicrft
fix(ci): only release on feat / fix / perf / refactor commits
The decide job was returning release=true for a chore: commit
because cliff.toml had no commit_parsers and filter_commits was
false, so git-cliff treated every conventional commit (chore, ci,
docs, test, style) as bump-worthy. Add explicit parsers that:
- Group feat / fix / perf / refactor under release sections.
- Skip chore / ci / docs / test / style / build entirely.
- Skip anything else as a catch-all.
Set filter_commits = true so skipped commits do not contribute to
either the changelog or git-cliff's bump calculation.
Also harden the workflow's decide step against three failure modes
of git-cliff --bumped-version observed locally:
(a) git-cliff prints "There is nothing to bump" on stderr but
still emits the previous tag on stdout. Detect that signal
directly.
(b) The proposed version equals the latest tag.
(c) The proposed version is <= the latest tag (sort -V), which
can happen when git-cliff's notion of "latest" excludes our
own chore(release): bump commits.
Any of these means "skip release", with explicit log lines so it
is obvious from the run summary why nothing shipped.1 parent 4973a3b commit fe4d872
2 files changed
+53
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | | - | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
58 | 74 | | |
59 | | - | |
| 75 | + | |
60 | 76 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
66 | 87 | | |
67 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
68 | 94 | | |
69 | 95 | | |
70 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
78 | 96 | | |
79 | | - | |
| 97 | + | |
80 | 98 | | |
81 | 99 | | |
82 | 100 | | |
| |||
0 commit comments