ci/release-notes.js
module.exports = [
'@semantic-release/release-notes-generator',
{
preset: 'conventionalcommits',
writerOpts: {
groupBy: 'type',
commitGroupsSort: ['feat', 'fix', 'perf', 'docs', 'revert', 'refactor', 'chore'],
commitsSort: 'header',
},
presetConfig: {
types: [
{ type: 'build', section: '๐ฆ CI/CD', hidden: true },
{ type: 'chore', section: '๐งพ Other', hidden: false },
{ type: 'ci', section: '๐ฆ CI/CD', hidden: true },
{ type: 'docs', section: '๐ Docs', hidden: false },
{ type: 'example', section: '๐ Examples', hidden: false },
{ type: 'feat', section: '๐ Features', hidden: false },
{ type: 'fix', section: '๐ Fixes', hidden: false },
{ type: 'perf', section: 'โฉ Performance', hidden: false },
{ type: 'refactor', section: 'โ๏ธ Refactor', hidden: false },
{ type: 'revert', section: '๐
โ๏ธ Reverts', hidden: false },
{ type: 'style', section: '๐ Style', hidden: true },
{ type: 'test', section: '๐งช Tests', hidden: true },
],
},
},
];