diff --git a/src/commitlint/index.js b/src/commitlint/index.js index f0ddb64..936562a 100644 --- a/src/commitlint/index.js +++ b/src/commitlint/index.js @@ -7,7 +7,7 @@ module.exports = { 'scope-enum': [ 2, 'always', - ['config', 'docs', 'release', 'ui', 'api', 'deps', 'typescript'], + ['config', 'docs', 'ci', 'release', 'ui', 'api', 'deps', 'typescript'], ], 'type-enum': [ 2, diff --git a/src/semantic-release/index.js b/src/semantic-release/index.js index 8484f89..3a18f1c 100644 --- a/src/semantic-release/index.js +++ b/src/semantic-release/index.js @@ -13,14 +13,19 @@ module.exports = { '@semantic-release/release-notes-generator', '@semantic-release/npm', [ - '@semantic-release/git', + 'semantic-release-github-pullrequest', { assets: ['CHANGELOG.md', 'package.json', 'package-lock.json'], + baseBranch: 'main', // eslint-disable-next-line no-template-curly-in-string -- required by `semantic-release`. message: 'chore(release): ${nextRelease.version} [skip ci]', + pullrequestBody: + // eslint-disable-next-line no-template-curly-in-string -- required by `semantic-release`. + 'This is an automated pull request for release version ${nextRelease.version}.', + // eslint-disable-next-line no-template-curly-in-string -- required by `semantic-release`. + pullrequestTitle: 'chore(release): ${nextRelease.version}', }, ], '@semantic-release/github', - 'semantic-release-github-pullrequest', ], };