-
Notifications
You must be signed in to change notification settings - Fork 3
/
.release-it.cjs
48 lines (47 loc) · 1.07 KB
/
.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
43
44
45
46
47
48
/* eslint-disable no-template-curly-in-string */
const {
mainTemplate,
commitPartial,
transform,
commitGroupsSort,
} = require("./release-it/conventionalChangelogWriterOptsTransform.cjs");
module.exports = {
hooks: {
"before:init": [
"npx turbo run lint:eslint lint:types lint:css lint:md lint:knip lint:package-json lint:spelling lint:prettier test",
],
},
git: {
requireBranch: "main",
requireCommits: true,
commitMessage: "🚀 Release v${version}",
commitArgs: ["--no-verify", "-S"],
tagArgs: ["-s"],
},
github: {
releaseName: "Release v${version}",
release: true,
comments: {
submit: true,
},
},
npm: {
publish: false,
},
plugins: {
"@release-it/conventional-changelog": {
preset: { name: "conventionalcommits" },
infile: "CHANGELOG.md",
gitRawCommitsOpts: {
format:
"%B%n-hash-%n%H%n-shortHash-%n%h%n-gitTags-%n%d%n-committerDate-%n%ci%n-authorName-%n%an%n-authorEmail-%n%ae%n-gpgStatus-%n%G?%n-gpgSigner-%n%GS",
},
writerOpts: {
mainTemplate,
commitPartial,
transform,
commitGroupsSort,
},
},
},
};