Skip to content

Commit aea2012

Browse files
committed
fix: presetConfig not needed on previous conventionalcommits versions
- noted by: semantic-release/commit-analyzer#525
1 parent 9a76f96 commit aea2012

File tree

2 files changed

+16
-19
lines changed

2 files changed

+16
-19
lines changed

.github/workflows/deploy_semantic_release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
@semantic-release/github
5353
@semantic-release/npm
5454
@semantic-release/exec
55-
conventional-changelog-conventionalcommits
55+
conventional-changelog-conventionalcommits@6
5656
env:
5757
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
5858

release.config.js

+15-18
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
11
/* eslint-disable no-template-curly-in-string */
22

3-
const conventionalCommitPresetConfig = {
4-
types: [
5-
{ type: 'feat', section: 'Features' },
6-
{ type: 'fix', section: 'Fixes' },
7-
{ type: 'chore', hidden: false, section: 'Other' },
8-
{ type: 'docs', hidden: false, section: 'Other' },
9-
{ type: 'style', hidden: false, section: 'Other' },
10-
{ type: 'refactor', hidden: false, section: 'Other' },
11-
{ type: 'perf', hidden: false, section: 'Other' },
12-
{ type: 'revert', hidden: false, section: 'Other ' },
13-
{ type: 'test', hidden: false, section: 'Other ' },
14-
{ type: 'build', hidden: false, section: 'Other' },
15-
{ type: 'ci', hidden: true },
16-
],
17-
};
18-
193
/**
204
* config for Semantic Release workflow
215
* docs: https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#configuration
@@ -38,15 +22,28 @@ module.exports = {
3822
{ type: 'fix', release: 'patch' },
3923
{ type: 'perf', release: 'patch' },
4024
],
41-
presetConfig: conventionalCommitPresetConfig,
4225
},
4326
],
4427
// create CHANGELOG text for changelog and commit description
4528
[
4629
'@semantic-release/release-notes-generator',
4730
{
4831
preset: 'conventionalcommits',
49-
presetConfig: conventionalCommitPresetConfig,
32+
presetConfig: {
33+
types: [
34+
{ type: 'feat', section: 'Features' },
35+
{ type: 'fix', section: 'Fixes' },
36+
{ type: 'chore', hidden: false, section: 'Other' },
37+
{ type: 'docs', hidden: false, section: 'Other' },
38+
{ type: 'style', hidden: false, section: 'Other' },
39+
{ type: 'refactor', hidden: false, section: 'Other' },
40+
{ type: 'perf', hidden: false, section: 'Other' },
41+
{ type: 'revert', hidden: false, section: 'Other ' },
42+
{ type: 'test', hidden: false, section: 'Other ' },
43+
{ type: 'build', hidden: false, section: 'Other' },
44+
{ type: 'ci', hidden: true },
45+
],
46+
},
5047
},
5148
],
5249
// edits CHANGELOG.md

0 commit comments

Comments
 (0)