-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.bump-and-release.config.js
53 lines (53 loc) · 1.12 KB
/
.bump-and-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
module.exports = {
bump: {
nextPossible: [
{
pos: 0,
type: "prepatch",
identifier: "beta",
prompt: (type, version) =>
`[${type}] ..... marking current as beta (${version})`,
default: true,
},
{
pos: 1,
type: "patch",
prompt: (type, version) =>
`[${type}] ........ only defect fixes (${version})`,
},
{
pos: 3,
type: "minor",
prompt: (type, version) =>
`[${type}] ........ at least one new feature (${version})`,
},
{
pos: 4,
type: "major",
prompt: (type, version) =>
`[${type}] ........ breaking change(s) (${version})`,
},
{
pos: 5,
type: "separator",
},
{
pos: 6,
type: "custom",
prompt: (type) => `[${type}] ....... enter a custom version`,
},
],
},
release: {
prerelease: [
{
name: "run tests",
command: "npm run test",
},
{
name: "generate changelog",
command: "npm run changelog",
},
],
},
};