-
Notifications
You must be signed in to change notification settings - Fork 1
/
.release-it.js
57 lines (55 loc) · 1.63 KB
/
.release-it.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
const fs = require("fs");
const path = require("path");
const commits_template = fs
.readFileSync(
path.resolve(__dirname, "release-it", "conventional-changelog-commit.hbs")
)
.toString();
module.exports = {
npm: {
publish: true,
},
git: {
requireBranch: ["master", "main"],
commitMessage: "Release new version.",
commitArgs: ["-n"],
},
plugins: {
"@release-it/conventional-changelog": {
infile: "CHANGES.md",
header: "# Changelog\n\n",
ignoreRecommendedBump: true,
preset: {
name: "conventionalcommits",
types: [
{
type: "breaking",
section: "Breaking Changes",
},
{
type: "feat",
section: "Features",
},
{
type: "fix",
section: "Bug Fixes",
},
{
type: "maint",
section: "Maintenance",
},
],
},
writerOpts: {
commitPartial: commits_template,
},
},
},
hooks: {
// Run `make bundle` after the version is bumped to get a build with
// the new version number comment in the entry scripts.
// Use the make target which does a check to not build if the package
// is this `@patternslib/dev` package.
"after:bump": "make bundle",
},
};