Skip to content

Commit

Permalink
ci: Fix LTS releases are published as pre-releases (#8989)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrezza authored Mar 5, 2024
1 parent 9282bc5 commit b8535b3
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ const templates = {
async function config() {

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

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

// Load template file contents
Expand All @@ -40,8 +40,8 @@ async function config() {
{ name: 'alpha', prerelease: true },
{ name: 'beta', prerelease: true },
'next-major',
// Long-Term-Support branch of previous major version
'release-6.x.x',
// Long-Term-Support branches
{ name: 'release-6.x.x', range: '6.x.x', channel: '6.x.x' },
],
dryRun: false,
debug: true,
Expand Down Expand Up @@ -85,16 +85,6 @@ async function config() {
labels: ['type:ci'],
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" },
]
}
],
],
};

Expand Down

0 comments on commit b8535b3

Please sign in to comment.