-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.config.cjs
More file actions
34 lines (34 loc) · 1.28 KB
/
release.config.cjs
File metadata and controls
34 lines (34 loc) · 1.28 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
module.exports = {
branches: ['main'],
tagFormat: '${version}',
plugins: [
[
'@semantic-release/commit-analyzer',
{
releaseRules: [
{ type: 'breaking', release: 'major' },
{ type: 'feat', release: 'minor' },
{ type: 'fix', release: 'patch' },
{ type: 'refactor', release: 'patch' },
{ type: 'security', release: 'patch' },
{ type: 'style', release: 'patch' },
{ type: 'chore', release: false },
{ type: 'ci', release: false },
{ type: 'docs', release: false },
{ type: 'test', release: false },
],
},
],
'@semantic-release/release-notes-generator',
['@semantic-release/changelog', { changelogFile: 'CHANGELOG.md' }],
['@semantic-release/npm', { npmPublish: false }],
[
'@semantic-release/git',
{
assets: ['package.json', 'package-lock.json'],
message: 'chore(release): ${nextRelease.version}\n\n${nextRelease.notes}',
},
],
['@semantic-release/github', { assets: ['CHANGELOG.md'] }],
],
};