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