-
Notifications
You must be signed in to change notification settings - Fork 0
/
.release-it.cjs
50 lines (49 loc) · 1.14 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
49
50
/* eslint-disable no-template-curly-in-string */
const {
mainTemplate,
commitPartial,
transform,
commitGroupsSort,
} = require("./release-it/conventionalChangelogWriterOptionsTransform.cjs");
module.exports = {
hooks: {
"before:init": [
"npx turbo run lint:eslint lint:types lint:md lint:knip lint:package-json lint:spelling lint:prettier test",
],
},
git: {
requireBranch: "main",
// requireCleanWorkingDir: false,
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",
// ignoreRecommendedBump: true,
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,
},
},
},
};