@@ -82,9 +82,230 @@ module.exports = {
82
82
"[email protected] :aws/aws-cryptographic-material-providers-library.git" ,
83
83
plugins : [
84
84
// Check the commits since the last release
85
- "@semantic-release/commit-analyzer" ,
85
+ [
86
+ "@semantic-release/commit-analyzer" ,
87
+ {
88
+ preset : "conventionalcommits" ,
89
+ parserOpts : {
90
+ noteKeywords : [ "BREAKING CHANGE" , "BREAKING CHANGES" ] ,
91
+ } ,
92
+ presetConfig : {
93
+ types : [
94
+ { type : "feat" , section : "Features" } ,
95
+ { type : "fix" , section : "Fixes" } ,
96
+ { type : "chore" , section : "Maintenance" } ,
97
+ { type : "docs" , section : "Maintenance" } ,
98
+ { type : "revert" , section : "Fixes" } ,
99
+ { type : "style" , section : "Miscellaneous" } ,
100
+ { type : "refactor" , section : "Miscellaneous" } ,
101
+ { type : "perf" , section : "Miscellaneous" } ,
102
+ { type : "test" , section : "Miscellaneous" } ,
103
+ ] ,
104
+ } ,
105
+ releaseRules : [
106
+ { type : "docs" , release : "patch" } ,
107
+ { type : "revert" , release : "patch" } ,
108
+ { type : "chore" , release : "patch" } ,
109
+ ] ,
110
+ } ,
111
+ ] ,
86
112
// Based on the commits generate release notes
87
- "@semantic-release/release-notes-generator" ,
113
+ [
114
+ "@semantic-release/release-notes-generator" ,
115
+ {
116
+ preset : "conventionalcommits" ,
117
+ presetConfig : {
118
+ types : [
119
+ {
120
+ type : "feat" ,
121
+ scope : "dafny" ,
122
+ section : "Features -- All Languages" ,
123
+ hidden : false ,
124
+ } ,
125
+ {
126
+ type : "feat" ,
127
+ scope : "java" ,
128
+ section : "Features -- Java" ,
129
+ hidden : false ,
130
+ } ,
131
+ {
132
+ type : "feat" ,
133
+ scope : "dotnet" ,
134
+ section : "Features -- DotNet" ,
135
+ hidden : false ,
136
+ } ,
137
+ {
138
+ type : "feat" ,
139
+ scope : "python" ,
140
+ section : "Features -- Python" ,
141
+ hidden : false ,
142
+ } ,
143
+ {
144
+ type : "feat" ,
145
+ scope : "go" ,
146
+ section : "Features -- Go" ,
147
+ hidden : false ,
148
+ } ,
149
+ {
150
+ type : "feat" ,
151
+ scope : "rust" ,
152
+ section : "Features -- Rust" ,
153
+ hidden : false ,
154
+ } ,
155
+
156
+ {
157
+ type : "fix" ,
158
+ scope : "dafny" ,
159
+ section : "Fixes -- All Languages" ,
160
+ hidden : false ,
161
+ } ,
162
+ {
163
+ type : "fix" ,
164
+ scope : "java" ,
165
+ section : "Fixes -- Java" ,
166
+ hidden : false ,
167
+ } ,
168
+ {
169
+ type : "fix" ,
170
+ scope : "dotnet" ,
171
+ section : "Fixes -- DotNet" ,
172
+ hidden : false ,
173
+ } ,
174
+ {
175
+ type : "fix" ,
176
+ scope : "python" ,
177
+ section : "Fixes -- Python" ,
178
+ hidden : false ,
179
+ } ,
180
+ { type : "fix" , scope : "go" , section : "Fixes -- Go" , hidden : false } ,
181
+ {
182
+ type : "fix" ,
183
+ scope : "rust" ,
184
+ section : "Fixes -- Rust" ,
185
+ hidden : false ,
186
+ } ,
187
+
188
+ {
189
+ type : "chore" ,
190
+ scope : "dafny" ,
191
+ section : "Maintenance -- All Languages" ,
192
+ hidden : false ,
193
+ } ,
194
+ {
195
+ type : "chore" ,
196
+ scope : "java" ,
197
+ section : "Maintenance -- Java" ,
198
+ hidden : false ,
199
+ } ,
200
+ {
201
+ type : "chore" ,
202
+ scope : "dotnet" ,
203
+ section : "Maintenance -- DotNet" ,
204
+ hidden : false ,
205
+ } ,
206
+ {
207
+ type : "chore" ,
208
+ scope : "python" ,
209
+ section : "Maintenance -- Python" ,
210
+ hidden : false ,
211
+ } ,
212
+ {
213
+ type : "chore" ,
214
+ scope : "go" ,
215
+ section : "Maintenance -- Go" ,
216
+ hidden : false ,
217
+ } ,
218
+ {
219
+ type : "chore" ,
220
+ scope : "rust" ,
221
+ section : "Maintenance -- Rust" ,
222
+ hidden : false ,
223
+ } ,
224
+ {
225
+ type : "chore" ,
226
+ section : "Miscellaneous" ,
227
+ hidden : false ,
228
+ } ,
229
+ {
230
+ type : "docs" ,
231
+ scope : "dafny" ,
232
+ section : "Maintenance -- All Languages" ,
233
+ hidden : false ,
234
+ } ,
235
+ {
236
+ type : "docs" ,
237
+ scope : "java" ,
238
+ section : "Maintenance -- Java" ,
239
+ hidden : false ,
240
+ } ,
241
+ {
242
+ type : "docs" ,
243
+ scope : "dotnet" ,
244
+ section : "Maintenance -- DotNet" ,
245
+ hidden : false ,
246
+ } ,
247
+ {
248
+ type : "docs" ,
249
+ scope : "python" ,
250
+ section : "Maintenance -- Python" ,
251
+ hidden : false ,
252
+ } ,
253
+ {
254
+ type : "docs" ,
255
+ scope : "go" ,
256
+ section : "Maintenance -- Go" ,
257
+ hidden : false ,
258
+ } ,
259
+ {
260
+ type : "docs" ,
261
+ scope : "rust" ,
262
+ section : "Maintenance -- Rust" ,
263
+ hidden : false ,
264
+ } ,
265
+ {
266
+ type : "revert" ,
267
+ scope : "dafny" ,
268
+ section : "Fixes -- All Languages" ,
269
+ hidden : false ,
270
+ } ,
271
+ {
272
+ type : "revert" ,
273
+ scope : "java" ,
274
+ section : "Fixes -- Java" ,
275
+ hidden : false ,
276
+ } ,
277
+ {
278
+ type : "revert" ,
279
+ scope : "dotnet" ,
280
+ section : "Fixes -- DotNet" ,
281
+ hidden : false ,
282
+ } ,
283
+ {
284
+ type : "revert" ,
285
+ scope : "python" ,
286
+ section : "Fixes -- Python" ,
287
+ hidden : false ,
288
+ } ,
289
+ {
290
+ type : "revert" ,
291
+ scope : "go" ,
292
+ section : "Fixes -- Go" ,
293
+ hidden : false ,
294
+ } ,
295
+ {
296
+ type : "revert" ,
297
+ scope : "rust" ,
298
+ section : "Fixes -- Rust" ,
299
+ hidden : false ,
300
+ } ,
301
+ { type : "style" , section : "Miscellaneous" , hidden : false } ,
302
+ { type : "refactor" , section : "Miscellaneous" , hidden : false } ,
303
+ { type : "perf" , section : "Miscellaneous" , hidden : false } ,
304
+ { type : "test" , section : "Miscellaneous" , hidden : false } ,
305
+ ] ,
306
+ } ,
307
+ } ,
308
+ ] ,
88
309
// Update the change log with the generated release notes
89
310
[
90
311
"@semantic-release/changelog" ,
@@ -173,7 +394,7 @@ module.exports = {
173
394
"**/runtimes/python/**/*.dtr" ,
174
395
] ,
175
396
message :
176
- "chore(release) : ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" ,
397
+ "chore: ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" ,
177
398
} ,
178
399
] ,
179
400
] ,
0 commit comments