Skip to content

Commit 8a0dd4c

Browse files
felixwang9817adchia
authored andcommitted
ci: Fix release process to find breaking changes (#3021)
* Fix release process to find breaking changes Signed-off-by: Felix Wang <wangfelix98@gmail.com> * Add comments Signed-off-by: Felix Wang <wangfelix98@gmail.com>
1 parent 0e2d145 commit 8a0dd4c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.releaserc.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ module.exports = {
2828
"releaseRules": [
2929
{breaking: true, release: 'minor'},
3030
{tag: 'Breaking', release: 'minor'},
31-
]
31+
{type: '*!', release: 'minor'},
32+
],
33+
// Ensure that the "BREAKING CHANGE" notes in commit footers are parsed
34+
"parserOpts": {
35+
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"]
36+
}
3237
}],
3338

3439
["@semantic-release/exec", {
@@ -39,7 +44,10 @@ module.exports = {
3944
"prepareCmd": "python ./infra/scripts/release/bump_file_versions.py ${lastRelease.version} ${nextRelease.version}"
4045
}],
4146

42-
"@semantic-release/release-notes-generator",
47+
["@semantic-release/release-notes-generator", {
48+
// Ensure that a "Breaking Changes" section is added to the release notes
49+
"preset": "angular"
50+
}],
4351

4452
// Update the changelog
4553
[

0 commit comments

Comments
 (0)