Skip to content

Commit cf925e7

Browse files
authored
fix: auto-release process may fail if optional back-merging task fails (#8051)
1 parent 16c7656 commit cf925e7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

release.config.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -83,21 +83,21 @@ async function config() {
8383
['@semantic-release/git', {
8484
assets: [changelogFile, 'package.json', 'package-lock.json', 'npm-shrinkwrap.json'],
8585
}],
86+
['@semantic-release/github', {
87+
successComment: getReleaseComment(),
88+
labels: ['type:ci'],
89+
releasedLabels: ['state:released<%= nextRelease.channel ? `-\${nextRelease.channel}` : "" %>']
90+
}],
91+
// Back-merge module runs last because if it fails it should not impede the release process
8692
[
8793
"@saithodev/semantic-release-backmerge",
8894
{
8995
"branches": [
9096
{ from: "beta", to: "alpha" },
9197
{ from: "release", to: "beta" },
92-
{ from: "release", to: "alpha" },
9398
]
9499
}
95100
],
96-
['@semantic-release/github', {
97-
successComment: getReleaseComment(),
98-
labels: ['type:ci'],
99-
releasedLabels: ['state:released<%= nextRelease.channel ? `-\${nextRelease.channel}` : "" %>']
100-
}],
101101
],
102102
};
103103

0 commit comments

Comments
 (0)