Skip to content

Commit

Permalink
πŸ› fix: finaly solve semantic-release commit type detection
Browse files Browse the repository at this point in the history
  • Loading branch information
drackp2m committed Nov 2, 2024
1 parent 6070b41 commit fb84a24
Showing 1 changed file with 39 additions and 31 deletions.
70 changes: 39 additions & 31 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -1,35 +1,43 @@
module.exports = {
release: {
branches: ['main'],
plugins: [
[
'@semantic-release/commit-analyzer',
{
preset: 'conventionalcommits',
releaseRules: [
{ type: 'BREAKING CHANGE', release: 'major' },
{ type: '✨ feat', release: 'minor' },
{ type: '🎨 style', release: 'patch' },
{ type: 'οΏ½{ fix', release: 'patch' },
{ type: 'πŸš€ perf', release: 'patch' },
],
branches: ['main'],
plugins: [
[
'@semantic-release/commit-analyzer',
{
releaseRules: [
{ type: 'feat', release: 'minor' },
{ type: 'fix', release: 'patch' },
{ type: 'docs', release: 'patch' },
{ type: 'style', release: 'patch' },
{ type: 'refactor', release: 'patch' },
{ type: 'perf', release: 'patch' },
{ type: 'test', release: 'patch' },
{ type: 'build', release: 'patch' },
{ type: 'ci', release: 'patch' },
{ type: 'chore', release: 'patch' },
{ type: 'revert', release: 'patch' },
{ type: 'BREAKING CHANGE', release: 'major' },
],
parserOpts: {
headerPattern: /^(.+?)\s(?<type>\w+)(?:\((?<scope>[^)]*)\))?: (?<subject>.+)$/u,
headerCorrespondence: ['emoji', 'type', 'scope', 'subject'],
},
],
'@semantic-release/release-notes-generator',
'@semantic-release/changelog',
[
'@semantic-release/npm',
{
npmPublish: false,
},
],
[
'@semantic-release/git',
{
assets: ['CHANGELOG.md', 'package.json'],
message: 'πŸŽ’ chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
},
],
},
],
'@semantic-release/release-notes-generator',
'@semantic-release/changelog',
[
'@semantic-release/npm',
{
npmPublish: false,
},
],
[
'@semantic-release/git',
{
assets: ['CHANGELOG.md', 'package.json'],
message: 'πŸŽ’ chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
},
],
},
],
};

0 comments on commit fb84a24

Please sign in to comment.