Skip to content

Commit

Permalink
ci(github): update dependabot commit prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao authored Dec 2, 2024
1 parent 0a84fc4 commit 0f0d8ed
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ updates:
- dependency-type: 'production'
- dependency-type: 'development'
commit-message:
prefix: 'feat(deps)'
prefix: 'build(deps)'
prefix-development: 'build(deps)'
51 changes: 51 additions & 0 deletions release.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/**
* @type {import('semantic-release').GlobalConfig}
*/

module.exports = {
branches: ['main'],
plugins: [
[
'@semantic-release/commit-analyzer',
{
preset: 'angular',
releaseRules: [{ type: 'build', scope: 'deps', release: false }],
},
],
[
'@semantic-release/release-notes-generator',
{
preset: 'angular',
writerOpts: {
transform: (commit, context) => {
if (commit.type === 'build' && commit.scope === 'deps') {
commit.type = 'Dependencies';
}
return commit;
},
groupBy: 'type',
commitGroupsSort: 'title',
commitsSort: ['scope', 'subject'],
noteGroupsSort: 'title',
notesSort: compareFunc,
},
},
],
'@semantic-release/changelog',
[
'@semantic-release/npm',
{
npmPublish: false,
},
],
[
'@semantic-release/git',
{
assets: ['package.json', 'CHANGELOG.md'],
message:
'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
},
],
'@semantic-release/github',
],
};
32 changes: 0 additions & 32 deletions release.config.json

This file was deleted.

0 comments on commit 0f0d8ed

Please sign in to comment.