1
1
/* eslint-disable no-template-curly-in-string */
2
2
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
-
19
3
/**
20
4
* config for Semantic Release workflow
21
5
* docs: https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#configuration
@@ -38,15 +22,28 @@ module.exports = {
38
22
{ type : 'fix' , release : 'patch' } ,
39
23
{ type : 'perf' , release : 'patch' } ,
40
24
] ,
41
- presetConfig : conventionalCommitPresetConfig ,
42
25
} ,
43
26
] ,
44
27
// create CHANGELOG text for changelog and commit description
45
28
[
46
29
'@semantic-release/release-notes-generator' ,
47
30
{
48
31
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
+ } ,
50
47
} ,
51
48
] ,
52
49
// edits CHANGELOG.md
0 commit comments