-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.release-it.js
39 lines (37 loc) · 1021 Bytes
/
.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
const fs = require('fs');
const commitTemplate = fs.readFileSync('.release-it/commit.hbs').toString();
module.exports = {
"hooks": {
"after:git:release": "make VERSION=${version} dist"
},
"git": {
"commitMessage": "chore: release v${version}"
},
"github": {
"release": true,
"releaseName": "publii-luci-theme - v${version}",
"assets": ["dist/*.zip"]
},
"npm": {
"publish": false
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": "conventionalcommits",
"infile": "CHANGELOG.md",
"header": "# Changelog",
"writerOpts": {
"commitPartial": commitTemplate
}
},
"@j-ulrich/release-it-regex-bumper": {
"out": [
{
"file": "config.json",
"search": "\"version\": \".+?\",",
"replace": "\"version\": \"{{version}}\","
}
]
}
}
}