ci: Fix LTS releases are published as pre-releases (#8989)
This commit is contained in:
@@ -24,11 +24,11 @@ const templates = {
|
|||||||
async function config() {
|
async function config() {
|
||||||
|
|
||||||
// Get branch
|
// Get branch
|
||||||
const branch = ref.split('/').pop().split('-')[0];
|
const branch = ref.split('/').pop();
|
||||||
console.log(`Running on branch: ${branch}`);
|
console.log(`Running on branch: ${branch}`);
|
||||||
|
|
||||||
// Set changelog file
|
// Set changelog file
|
||||||
const changelogFile = `./changelogs/CHANGELOG_${branch}.md`;
|
const changelogFile = `./changelogs/CHANGELOG_release.md`;
|
||||||
console.log(`Changelog file output to: ${changelogFile}`);
|
console.log(`Changelog file output to: ${changelogFile}`);
|
||||||
|
|
||||||
// Load template file contents
|
// Load template file contents
|
||||||
@@ -40,8 +40,8 @@ async function config() {
|
|||||||
{ name: 'alpha', prerelease: true },
|
{ name: 'alpha', prerelease: true },
|
||||||
{ name: 'beta', prerelease: true },
|
{ name: 'beta', prerelease: true },
|
||||||
'next-major',
|
'next-major',
|
||||||
// Long-Term-Support branch of previous major version
|
// Long-Term-Support branches
|
||||||
'release-6.x.x',
|
{ name: 'release-6.x.x', range: '6.x.x', channel: '6.x.x' },
|
||||||
],
|
],
|
||||||
dryRun: false,
|
dryRun: false,
|
||||||
debug: true,
|
debug: true,
|
||||||
@@ -85,16 +85,6 @@ async function config() {
|
|||||||
labels: ['type:ci'],
|
labels: ['type:ci'],
|
||||||
releasedLabels: ['state:released<%= nextRelease.channel ? `-\${nextRelease.channel}` : "" %>']
|
releasedLabels: ['state:released<%= nextRelease.channel ? `-\${nextRelease.channel}` : "" %>']
|
||||||
}],
|
}],
|
||||||
// Back-merge module runs last because if it fails it should not impede the release process
|
|
||||||
[
|
|
||||||
"@saithodev/semantic-release-backmerge",
|
|
||||||
{
|
|
||||||
"branches": [
|
|
||||||
{ from: "beta", to: "alpha" },
|
|
||||||
{ from: "release", to: "beta" },
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user