-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrelease.config.js
79 lines (79 loc) · 3.12 KB
/
release.config.js
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 = {
branches: ['master'],
repository: 'https://github.com/lucasvtiradentes/gcal-sync',
plugins: [
[
'@semantic-release/commit-analyzer',
{
releaseRules: [
{ type: 'feature', release: 'minor' },
{ type: 'tests', release: 'patch' },
{ type: 'docs', release: 'patch' },
{ type: 'types', release: 'patch' },
{ type: 'config', release: 'patch' },
{ type: 'binary', release: 'patch' },
{ type: 'assets', release: 'patch' },
{ type: 'ui', release: 'patch' },
{ type: 'i18n', release: 'patch' },
{ type: 'bugfix', release: 'patch' },
{ type: 'hotfix', release: 'patch' },
{ type: 'fix', release: 'patch' },
{ type: 'detect', release: 'patch' },
{ type: 'revert', release: 'patch' },
{ type: 'breaking', release: 'major' }
],
parserOpts: {
headerPattern: /^(:\w*:)\s?(\w*)(?:\((.*)\))?!?:\s(.*)$/,
headerCorrespondence: ['emoji', 'type', 'scope', 'subject'],
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES']
}
}
],
[
'@semantic-release/changelog',
{
changelogFile: 'docs/CHANGELOG.MD',
changelogTitle: '# CHANGELOG HISTORY'
}
],
[
'@semantic-release/release-notes-generator',
{
preset: 'conventionalcommits',
parserOpts: {
headerPattern: /^(:\w*:)\s?(\w*)(?:\((.*)\))?!?:\s(.*)$/,
headerCorrespondence: ['emoji', 'type', 'scope', 'subject'],
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES']
},
presetConfig: {
types: [
{ type: 'feature', section: '✨ feature:', hidden: false },
{ type: 'tests', section: '✅ tests:', hidden: false },
{ type: 'docs', section: '📝 docs:', hidden: false },
{ type: 'types', section: '🏷️ types:', hidden: false },
{ type: 'config', section: '🔧 config:', hidden: false },
{ type: 'binary', section: '📦️ binary:', hidden: false },
{ type: 'assets', section: '🍱 assets:', hidden: false },
{ type: 'ui', section: '💄 ui:', hidden: false },
{ type: 'i18n', section: '🌐 i18n:', hidden: false },
{ type: 'bugfix', section: '🐛 bugfix:', hidden: false },
{ type: 'hotfix', section: '🚑️ hotfix:', hidden: false },
{ type: 'fix', section: '🩹 fix:', hidden: false },
{ type: 'detect', section: '🥅 detect:', hidden: false },
{ type: 'revert', section: '⏪️ revert:', hidden: false },
{ type: 'breaking', section: '💥 breaking:', hidden: false }
]
}
}
],
'@semantic-release/github',
'@semantic-release/npm',
[
'@semantic-release/git',
{
assets: ['package.json', 'README.md', 'docs/CHANGELOG.MD', 'dist/index.js', 'dist/index.min.js', 'dist/setup/gcalsync_dev.js'],
message: ':bookmark: tags: new version release ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
}
]
]
};