-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.config.cjs
35 lines (35 loc) · 1012 Bytes
/
release.config.cjs
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
module.exports = {
branches: ['main'],
plugins: [
[
'@semantic-release/commit-analyzer',
{
preset: 'conventionalcommits',
releaseRules: [
{ type: 'feat', scope: 'docs', release: 'patch' },
{ type: 'chore', scope: 'docs', release: 'patch' },
{ type: 'feat', scope: 'release-major', release: 'major' },
{ type: 'feat', scope: 'release-minor', release: 'minor' },
{ type: 'feat', scope: 'release-patch', release: 'patch' },
{ type: 'fix', release: 'patch' },
{ type: 'perf', release: 'patch' },
{ scope: 'no-release', release: false },
],
},
],
'@semantic-release/release-notes-generator',
[
'@semantic-release/changelog',
{
changelogFile: 'CHANGELOG.md',
},
],
'@semantic-release/npm',
[
'@semantic-release/github',
{
assets: [{ path: 'bin/build.cjs', label: 'Standalone JS executable' }],
},
],
],
};