From 4e96990bd82b9d5b28542a781d72a277b673e7ec Mon Sep 17 00:00:00 2001 From: Carlos Santiago <5726971+csantiago132@users.noreply.github.com> Date: Mon, 30 Sep 2024 08:36:30 -0500 Subject: [PATCH] fix(ci): semantic-release-github-pullrequest instead of pushing to main --- src/commitlint/index.js | 2 +- src/semantic-release/index.js | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) 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..05822c2 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]', + // eslint-disable-next-line no-template-curly-in-string -- required by `semantic-release`. + pullrequestBody: + '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', ], };