Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Commit

Permalink
ci: extend semantic-release logic
Browse files Browse the repository at this point in the history
- configure more commit type with effect to release process
  • Loading branch information
xzima committed May 24, 2022
1 parent bf715da commit 0f31d76
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,35 @@ module.exports = {
},
],
plugins: [
'@semantic-release/commit-analyzer',
['@semantic-release/commit-analyzer', {
preset: "conventionalcommits",
releaseRules: [
{breaking: true, release: 'major'},
{revert: true, release: 'patch'},
// Conventional Commits
{type: 'feat', release: 'minor'},
{type: 'fix', release: 'patch'},
{type: 'perf', release: 'patch'},
{type: 'docs', release: 'patch'},
{type: 'build', release: 'patch'},
{type: 'ci', release: 'patch'},
]
}],
['@semantic-release/release-notes-generator', {
preset: "conventionalcommits",
presetConfig: {
"types": [
{type: 'feat', section: 'Features'},
{type: 'feature', section: 'Features'},
{type: 'fix', section: 'Bug Fixes'},
{type: 'perf', section: 'Performance Improvements'},
{type: 'revert', section: 'Reverts'},
{type: 'docs', section: 'Documentation'},
{type: 'feat', section: '⭐ New Features'},
{type: 'fix', section: '🐞 Bug Fixes'},
{type: 'perf', section: '📈 Performance Improvements'},
{type: 'revert', section: '🔙 Reverts'},
{type: 'docs', section: '📔 Documentation'},
{type: 'style', section: 'Styles', hidden: true},
{type: 'chore', section: 'Miscellaneous Chores', hidden: true},
{type: 'refactor', section: 'Code Refactoring', hidden: true},
{type: 'test', section: 'Tests', hidden: true},
{type: 'build', section: 'Build System'},
{type: 'ci', section: 'Continuous Integration', hidden: true}
{type: 'build', section: '🔨 Build System'},
{type: 'ci', section: '⚙️ Continuous Integration'}
]
}
}],
Expand Down

0 comments on commit 0f31d76

Please sign in to comment.