-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.release-it.cjs
42 lines (42 loc) · 933 Bytes
/
.release-it.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
module.exports = {
hooks: {
"before:init": ["cd .. && pnpm run build"],
"after:bump": [
"node ./scripts/zip.mjs",
"git add .",
],
"after:release":
"echo Successfully released obsidian plugin ${name} v${version} to ${repo.repository}.",
},
git: {
pushArgs: "--follow-tags -o ci.skip",
commitMessage: "chore: release obsidian plugin v${version}",
tagName: "${version}",
tagAnnotation: "Release Obsidian Plugin v${version}",
addUntrackedFiles: true,
},
plugins: {
// "@release-it/conventional-changelog": {
// preset: "angular",
// infile: "CHANGELOG.md",
// },
"./scripts/ob-bumper.mjs": {
indent: 2,
copyTo: "./dist",
},
},
npm: {
publish: false,
},
github: {
release: true,
assets: [
"dist/main.js",
"dist/manifest.json",
"dist/styles.css",
"dist/obsidian-templify-${version}.zip",
],
proxy: process.env.HTTPS_PROXY,
releaseName: "${version}",
},
};