Skip to content

Commit b8535b3

Browse files
authored
ci: Fix LTS releases are published as pre-releases (#8989)
1 parent 9282bc5 commit b8535b3

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

release.config.js

+4-14
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ const templates = {
2424
async function config() {
2525

2626
// Get branch
27-
const branch = ref.split('/').pop().split('-')[0];
27+
const branch = ref.split('/').pop();
2828
console.log(`Running on branch: ${branch}`);
2929

3030
// Set changelog file
31-
const changelogFile = `./changelogs/CHANGELOG_${branch}.md`;
31+
const changelogFile = `./changelogs/CHANGELOG_release.md`;
3232
console.log(`Changelog file output to: ${changelogFile}`);
3333

3434
// Load template file contents
@@ -40,8 +40,8 @@ async function config() {
4040
{ name: 'alpha', prerelease: true },
4141
{ name: 'beta', prerelease: true },
4242
'next-major',
43-
// Long-Term-Support branch of previous major version
44-
'release-6.x.x',
43+
// Long-Term-Support branches
44+
{ name: 'release-6.x.x', range: '6.x.x', channel: '6.x.x' },
4545
],
4646
dryRun: false,
4747
debug: true,
@@ -85,16 +85,6 @@ async function config() {
8585
labels: ['type:ci'],
8686
releasedLabels: ['state:released<%= nextRelease.channel ? `-\${nextRelease.channel}` : "" %>']
8787
}],
88-
// Back-merge module runs last because if it fails it should not impede the release process
89-
[
90-
"@saithodev/semantic-release-backmerge",
91-
{
92-
"branches": [
93-
{ from: "beta", to: "alpha" },
94-
{ from: "release", to: "beta" },
95-
]
96-
}
97-
],
9888
],
9989
};
10090

0 commit comments

Comments
 (0)