Skip to content

Commit

Permalink
ci: enable release for refactor and build commits
Browse files Browse the repository at this point in the history
Refs: (#145)
  • Loading branch information
rodleyorosa authored Feb 6, 2025
1 parent 0a569d0 commit 4c3f3b3
Showing 1 changed file with 32 additions and 27 deletions.
59 changes: 32 additions & 27 deletions release.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,36 @@
* @type {import('semantic-release').GlobalConfig}
*/
export default {
branches: [
"release",
{
name: 'devel',
prerelease: true
},
{
name: 'next/+([0-9]).+([0-9]).+([0-9])',
prerelease: '${name.replace(/[\\/\\.]/g, "-")}'
}
],
plugins: [
[
"@semantic-release/commit-analyzer",
{
preset: "conventionalcommits"
}
],
[
"@semantic-release/release-notes-generator",
{
preset: "conventionalcommits"
}
],
'@semantic-release/npm',
'@semantic-release/github'
]
branches: [
'release',
{
name: 'devel',
prerelease: true
},
{
name: 'next/+([0-9]).+([0-9]).+([0-9])',
prerelease: '${name.replace(/[\\/\\.]/g, "-")}'
}
],
plugins: [
[
'@semantic-release/commit-analyzer',
{
preset: 'conventionalcommits',
releaseRules: [
// enable release also for refactor and build commits
{ type: 'refactor', release: 'patch' },
{ type: 'build', release: 'patch' }
]
}
],
[
'@semantic-release/release-notes-generator',
{
preset: 'conventionalcommits'
}
],
'@semantic-release/npm',
'@semantic-release/github'
]
};

0 comments on commit 4c3f3b3

Please sign in to comment.