-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.config.js
59 lines (58 loc) · 2.01 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
module.exports = {
branches: 'main',
repositoryUrl: 'https://github.com/jlarmstrongiv/tfjs-node-lambda',
plugins: [
[
'@semantic-release/commit-analyzer',
{
releaseRules: [
// custom
{ type: 'chore', release: 'patch' },
{ type: 'style', release: 'patch' },
{ type: 'test', release: 'patch' },
{ type: 'refactor', release: 'patch' },
{ type: 'docs', release: 'patch' },
{ type: 'ci', release: 'patch' },
// https://github.com/semantic-release/commit-analyzer/blob/master/lib/default-release-rules.js
{ breaking: true, release: 'major' },
{ revert: true, release: 'patch' },
// Angular
{ type: 'feat', release: 'minor' },
{ type: 'fix', release: 'patch' },
{ type: 'perf', release: 'patch' },
// Atom
{ emoji: ':racehorse:', release: 'patch' },
{ emoji: ':bug:', release: 'patch' },
{ emoji: ':penguin:', release: 'patch' },
{ emoji: ':apple:', release: 'patch' },
{ emoji: ':checkered_flag:', release: 'patch' },
// Ember
{ tag: 'BUGFIX', release: 'patch' },
{ tag: 'FEATURE', release: 'minor' },
{ tag: 'SECURITY', release: 'patch' },
// ESLint
{ tag: 'Breaking', release: 'major' },
{ tag: 'Fix', release: 'patch' },
{ tag: 'Update', release: 'minor' },
{ tag: 'New', release: 'minor' },
// Express
{ component: 'perf', release: 'patch' },
{ component: 'deps', release: 'patch' },
// JSHint
{ type: 'FEAT', release: 'minor' },
{ type: 'FIX', release: 'patch' },
],
},
],
'@semantic-release/release-notes-generator',
'@semantic-release/npm',
[
'@semantic-release/github',
{
assets: ['**/*.br', 'matrix.json'],
message:
'ci: 🎡 release ${nextRelease.version}\n\n${nextRelease.notes}',
},
],
],
};