File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,35 @@ or if you already have an alias for sgc, use following instead:
36
36
$ semantic-git-commit
37
37
```
38
38
39
+ ### usage with semantic-release
40
+
41
+ > Configure sgc for the following semantic-release options: ` analyzeCommits ` and ` generateNotes `
42
+
43
+ First step, install the following plugins with
44
+ ``` sh
45
+ $ npm install --save-dev sr-commit-analyzer sr-release-notes-generator conventional-changelog-eslint
46
+ ```
47
+ or
48
+ ``` sh
49
+ $ yarn add -D sr-commit-analyzer sr-release-notes-generator conventional-changelog-eslint
50
+ ```
51
+
52
+ Then, add this in your ` package.json ` :
53
+ ``` json
54
+ {
55
+ "release" : {
56
+ "analyzeCommits" : {
57
+ "path" : " sr-commit-analyzer" ,
58
+ "preset" : " eslint"
59
+ },
60
+ "generateNotes" : {
61
+ "path" : " sr-release-notes-generator" ,
62
+ "preset" : " eslint"
63
+ }
64
+ }
65
+ }
66
+ ```
67
+
39
68
## Config
40
69
41
70
> Just create a ` .sgcrc ` in your project root or you can add everything in your ` package.json ` with the value ` sgc `
You can’t perform that action at this time.
0 commit comments