Skip to content

Commit

Permalink
fix(ci): semantic-release-github-pullrequest instead of pushing to main
Browse files Browse the repository at this point in the history
  • Loading branch information
csantiago132 committed Sep 30, 2024
1 parent d0cf1ae commit 4e96990
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/commitlint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
9 changes: 7 additions & 2 deletions src/semantic-release/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
};

0 comments on commit 4e96990

Please sign in to comment.