-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrelease.config.mjs
More file actions
39 lines (39 loc) · 1.26 KB
/
Copy pathrelease.config.mjs
File metadata and controls
39 lines (39 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
* @type {import('semantic-release').GlobalConfig}
*/
export default {
branches: [{ name: 'main' }],
plugins: [
[
'@semantic-release/release-notes-generator', // Generates release notes for the commits included in the release
{
preset: 'conventionalcommits',
presetConfig: {
types: [
{ type: 'feat', section: 'New Features' },
{ type: 'fix', section: 'Bug Fixes' },
{ type: 'update', section: 'Other Updates', hidden: false },
{
type: 'perf',
section: 'Performance Improvements',
hidden: false,
},
{ type: 'chore', hidden: true },
{ type: 'docs', hidden: true },
{ type: 'style', hidden: true },
{ type: 'refactor', hidden: true },
{ type: 'test', hidden: true },
{ type: 'ci', hidden: true },
{ type: 'revert', hidden: true },
{ type: 'build', hidden: false },
],
},
parserOpts: {
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING'],
},
},
],
'@semantic-release/github', // Creates a GitHub release
],
tagFormat: '${version}', // Don't use 'v' prefix for tags
};