Skip to content

Commit

Permalink
Merge pull request #8 from Kurocado-Studio/fix-ci-pipeline
Browse files Browse the repository at this point in the history
fix(ci): semantic-release-github-pullrequest instead of pushing to main
  • Loading branch information
csantiago132 authored Sep 30, 2024
2 parents d0cf1ae + 6d081e6 commit 6b97725
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]',
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',
],
};

0 comments on commit 6b97725

Please sign in to comment.