Skip to content

Commit 6201c1a

Browse files
authored
chore: Adding semantic release config file (#346)
* chore: Adding semantic release config file * chore: fixing typo, default branch should be master not main * chore: adding revert to the config file * chore: updating .gitignore
1 parent 456dda0 commit 6201c1a

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ target/
99
/.history
1010
/.DS_Store
1111
/specification_compliance_report.html
12+
13+
## semantic-release
14+
package-lock.json
15+
node_modules/

.releaserc

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"branches": ["master"],
3+
"plugins": [
4+
["@semantic-release/commit-analyzer", {
5+
"preset": "conventionalcommits",
6+
"parserOpts": {
7+
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"]
8+
},
9+
"presetConfig": {
10+
"types": [
11+
{"type": "feat", "section": "Features"},
12+
{"type": "fix", "section": "Bug Fixes"},
13+
{"type": "chore", "section": "Maintenance"},
14+
{"type": "docs", "section": "Maintenance"},
15+
{"type": "revert", "section": "Bug Fixes"},
16+
{"type": "style", "hidden": true},
17+
{"type": "refactor", "hidden": true},
18+
{"type": "perf", "hidden": true},
19+
{"type": "test", "hidden": true}
20+
]
21+
}
22+
}],
23+
["@semantic-release/release-notes-generator", {
24+
"preset": "conventionalcommits",
25+
"parserOpts": {
26+
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"]
27+
},
28+
"presetConfig": {
29+
"types": [
30+
{"type": "feat", "section": "Features"},
31+
{"type": "fix", "section": "Bug Fixes"},
32+
{"type": "chore", "section": "Maintenance"},
33+
{"type": "docs", "section": "Maintenance"},
34+
{"type": "revert", "section": "Bug Fixes"},
35+
{"type": "style", "hidden": true},
36+
{"type": "refactor", "hidden": true},
37+
{"type": "perf", "hidden": true},
38+
{"type": "test", "hidden": true}
39+
]
40+
}
41+
}],
42+
["@semantic-release/changelog", {
43+
"changelogFile": "./CHANGELOG.md"
44+
}],
45+
["@semantic-release/git", {
46+
"assets": ["./CHANGELOG.md"],
47+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
48+
}],
49+
"@semantic-release/github"
50+
],
51+
"repositoryUrl": "https://github.com/josecorella/test-semantic-release-pr",
52+
}

0 commit comments

Comments
 (0)