-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathrelease.config.js
More file actions
79 lines (79 loc) · 1.8 KB
/
release.config.js
File metadata and controls
79 lines (79 loc) · 1.8 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
module.exports = {
repositoryUrl: 'https://github.com/TrustVC/trustvc.git',
branches: [
{
name: 'main',
release: true,
},
{
name: 'v1',
prerelease: 'alpha',
},
],
github: true,
changelog: true,
npm: true,
outputPath: '/dist',
buildTarget: 'build',
tagFormat: 'v${version}',
debug: true,
plugins: [
[
'@semantic-release/commit-analyzer',
{
releaseRules: [
{
subject: '*BREAKING CHANGE*',
release: 'major',
},
{
footer: '*BREAKING CHANGE*',
release: 'major',
},
{
type: 'feat',
release: 'minor',
},
{
type: 'fix',
release: 'patch',
},
{
type: 'perf',
release: 'patch',
},
],
},
],
[
'@semantic-release/release-notes-generator',
{
/*
use conventionalcommits instead of conventional-changelog-angular (default)
to introduce new sections in changelog
*/
preset: 'conventionalcommits',
presetConfig: {
types: [
{ type: 'feat', section: 'Features', hidden: false },
{ type: 'fix', section: 'Bug Fixes', hidden: false },
{ type: 'docs', section: 'Miscellaneous Chores', hidden: false },
{ type: 'chore', section: 'Miscellaneous Chores', hidden: false },
],
},
parserOpts: {
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING'],
},
},
],
'@semantic-release/changelog',
[
'@semantic-release/npm',
{
npmPublish: true,
},
],
'@semantic-release/git',
'@semantic-release/github',
],
};