Skip to content

Commit e8a691e

Browse files
authoredJan 8, 2022
chore: add semantic release config (#220)
Generate changelogs again
1 parent c04f330 commit e8a691e

File tree

1 file changed

+65
-1
lines changed

1 file changed

+65
-1
lines changed
 

‎package.json

+65-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"binary",
4545
"string"
4646
],
47-
"license": "(Apache-2.0 OR MIT)",
47+
"license": "Apache-2.0 OR MIT",
4848
"bugs": "https://github.com/multiformats/js-multiaddr/issues",
4949
"homepage": "https://github.com/multiformats/js-multiaddr",
5050
"dependencies": {
@@ -60,5 +60,69 @@
6060
"aegir": "^36.1.3",
6161
"sinon": "^12.0.1",
6262
"util": "^0.12.3"
63+
},
64+
"release": {
65+
"branches": [
66+
"master"
67+
],
68+
"plugins": [
69+
[
70+
"@semantic-release/commit-analyzer", {
71+
"preset": "conventionalcommits",
72+
"releaseRules": [{
73+
"breaking": true,
74+
"release": "major"
75+
}, {
76+
"revert": true,
77+
"release": "patch"
78+
}, {
79+
"type": "feat",
80+
"release": "minor"
81+
}, {
82+
"type": "fix",
83+
"release": "patch"
84+
}, {
85+
"type": "chore",
86+
"release": "patch"
87+
}, {
88+
"type": "docs",
89+
"release": "patch"
90+
}, {
91+
"type": "test",
92+
"release": "patch"
93+
}, {
94+
"scope": "no-release",
95+
"release": false
96+
}]
97+
}
98+
],
99+
[
100+
"@semantic-release/release-notes-generator", {
101+
"preset": "conventionalcommits",
102+
"presetConfig": {
103+
"types": [{
104+
"type": "feat",
105+
"section": "Features"
106+
}, {
107+
"type": "fix",
108+
"section": "Bug Fixes"
109+
}, {
110+
"type": "chore",
111+
"section": "Trivial Changes"
112+
}, {
113+
"type": "docs",
114+
"section": "Trivial Changes"
115+
}, {
116+
"type": "test",
117+
"section": "Tests"
118+
}]
119+
}
120+
}
121+
],
122+
"@semantic-release/changelog",
123+
"@semantic-release/npm",
124+
"@semantic-release/github",
125+
"@semantic-release/git"
126+
]
63127
}
64128
}

0 commit comments

Comments
 (0)
Please sign in to comment.