This repository was archived by the owner on Jan 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauto.config.cjs
88 lines (85 loc) · 2.16 KB
/
auto.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
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
80
81
82
83
84
85
86
87
88
// @ts-check
const { SEMVER } = require('@auto-it/core')
/**
* @type {import('@auto-it/npm').INpmConfig} INpmConfig
*/
const npmOptions = {}
/**
* Auto Configuration
* @type {import('auto').AutoRc} AutoRC
*/
const config = {
plugins: [['npm', npmOptions], 'released'],
onlyPublishWithReleaseLabel: true,
labels: [
{
name: 'major',
changelogTitle: '💥 Breaking Change',
description: 'Increment the major version when merged',
releaseType: SEMVER.major,
color: '#C5000B',
},
{
name: 'minor',
changelogTitle: '🚀 Enhancement',
description: 'Increment the minor version when merged',
releaseType: SEMVER.minor,
color: '#F1A60E',
},
{
name: 'patch',
changelogTitle: '🐛 Bug Fix',
description: 'Increment the patch version when merged',
releaseType: SEMVER.patch,
color: '#870048',
},
{
name: 'skip-release',
description: 'Preserve the current version when merged',
releaseType: 'skip',
color: '#bf5416',
},
{
name: 'release',
description: 'Create a release when this pr is merged',
releaseType: 'release',
color: '#007f70',
},
{
name: 'internal',
changelogTitle: '🏠 Internal',
description: 'Changes only affect the internal code',
releaseType: 'none',
color: '#696969',
},
{
name: 'documentation',
changelogTitle: '📚 Documentation',
description: 'Changes only affect the documentation',
releaseType: 'none',
color: '#cfd3d7',
},
{
name: 'tests',
changelogTitle: '🚨 Tests',
description: 'Add or improve existing tests',
releaseType: 'none',
color: '#ffd3cc',
},
{
name: 'dependencies',
changelogTitle: '📌 Dependency Updates',
description: 'Update one or more dependencies version',
releaseType: 'none',
color: '#8732bc',
},
{
name: 'performance',
changelogTitle: '🏎 Performance',
description: 'Improve performance of an existing feature',
releaseType: SEMVER.patch,
color: '#f4b2d8',
},
],
}
module.exports = config