diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 2ec176ac82..1cd4610001 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -17,5 +17,5 @@ updates: - dependency-type: 'production' - dependency-type: 'development' commit-message: - prefix: 'feat(deps)' + prefix: 'build(deps)' prefix-development: 'build(deps)' diff --git a/release.config.cjs b/release.config.cjs new file mode 100644 index 0000000000..ebd9ab95f3 --- /dev/null +++ b/release.config.cjs @@ -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', + ], +}; diff --git a/release.config.json b/release.config.json deleted file mode 100644 index 3c76e11478..0000000000 --- a/release.config.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "branches": [ - "main", - { - "name": "beta", - "prerelease": true - }, - { - "name": "alpha", - "prerelease": true - } - ], - "plugins": [ - "@semantic-release/commit-analyzer", - "@semantic-release/release-notes-generator", - "@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" - ] -}