ci: update releaserc

This commit is contained in:
FairyEver 2020-04-22 13:09:04 +08:00
parent 98eaba77df
commit 30af84e47d
1 changed files with 29 additions and 2 deletions

View File

@ -1,8 +1,35 @@
module.exports = {
branch: 'master',
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
[
'@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',
{