Skip to content

Commit

Permalink
ci(release): tweak release configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
hertzg committed Jul 19, 2020
1 parent 1b5bc6f commit 9f0f012
Showing 1 changed file with 33 additions and 11 deletions.
44 changes: 33 additions & 11 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,50 @@ module.exports = {
preset: 'conventionalcommits',
releaseRules: [
{ breaking: true, release: 'major' },
{ type: 'rel', scope: 'major', release: 'major' },
{ type: 'feat', release: 'minor' },
{ type: 'rel', scope: 'minor', release: 'minor' },
{ type: 'fix', release: 'patch' },
{ type: 'perf', release: 'patch' },
{ type: 'deps', release: 'patch' },
{ scope: 'README', release: 'patch' },
{ type: 'rel', scope: 'patch', release: 'patch' },
{ scope: 'no-release', release: false },
],
changelogFile: 'CHANGELOG.md',
changelogTitle: CHANGELOG_HEADER,
tarballDir: 'pack',
message:
'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
assets: ['CHANGELOG.md', 'pack/*.tgz'],
assignees: ['hertzg'],

plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
'@semantic-release/changelog',
[
'@semantic-release/changelog',
{ changelogFile: 'CHANGELOG.md', changelogTitle: CHANGELOG_HEADER },
],
[
'@semantic-release/exec',
{
prepareCmd: 'prettier --write CHANGELOG.md',
},
],
'@semantic-release/npm',
// '@semantic-release/git',
'@semantic-release/github',
['@semantic-release/npm', { tarballDir: 'pack' }],
[
'@semantic-release/git',
{
assets: [
'CHANGELOG.md',
'package.json',
'package-lock.json',
'npm-shrinkwrap.json',
],
message:
'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
},
],
[
'@semantic-release/github',
{
assets: ['CHANGELOG.md', 'pack/*.tgz'],
assignees: ['hertzg'],
},
],
],
}

0 comments on commit 9f0f012

Please sign in to comment.