58 lines
1.4 KiB
JavaScript
58 lines
1.4 KiB
JavaScript
module.exports = {
|
|
branch: 'master',
|
|
plugins: [
|
|
[
|
|
'@semantic-release/commit-analyzer',
|
|
{
|
|
preset: 'angular',
|
|
releaseRules: [
|
|
{ type: 'style', release: 'patch' },
|
|
{ type: 'refactor', release: 'patch' },
|
|
{ type: 'build', release: 'patch' },
|
|
{ type: 'chore', release: 'patch' }
|
|
]
|
|
}
|
|
],
|
|
[
|
|
'@semantic-release/release-notes-generator',
|
|
{
|
|
presetConfig: {
|
|
types: [
|
|
{ type: 'feat', section: 'Features' },
|
|
{ type: 'fix', section: 'Bug Fixes' },
|
|
{ type: 'chore', section: 'Chore' },
|
|
{ type: 'docs', section: 'Documents' },
|
|
{ type: 'style', section: 'Code Style' },
|
|
{ type: 'refactor', section: 'Refactor' },
|
|
{ type: 'perf', section: 'Performance improvement' },
|
|
{ type: 'test', section: 'Test' }
|
|
]
|
|
}
|
|
}
|
|
],
|
|
[
|
|
'@semantic-release/changelog',
|
|
{
|
|
changelogFile: 'docs/CHANGELOG.md',
|
|
changelogTitle: '# Changelog\n\nAll notable changes to this project will be documented in this file.'
|
|
}
|
|
],
|
|
[
|
|
'@semantic-release/npm',
|
|
{
|
|
npmPublish: false
|
|
}
|
|
],
|
|
'@semantic-release/github',
|
|
[
|
|
'@semantic-release/git',
|
|
{
|
|
assets: [
|
|
'docs/CHANGELOG.md',
|
|
'package.json'
|
|
]
|
|
}
|
|
]
|
|
]
|
|
}
|