-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.release-it.base.ts
More file actions
53 lines (51 loc) · 1.95 KB
/
.release-it.base.ts
File metadata and controls
53 lines (51 loc) · 1.95 KB
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
import type { Config } from 'release-it';
const baseConfig = (name: string): Config => ({
plugins: {
"release-it-pnpm": {
// Disable the release step here to skip changelogithub and use `conventional-changelog` instead.
disableRelease: true,
// Publish only the current package; the plugin defaults to recursive workspace publishing.
publishCommand: 'pnpm publish --access public --no-git-checks --tag $tag',
},
"@release-it/conventional-changelog": {
infile: false,
// This mimics changelogithub categories/emojis
preset: {
name: "conventionalcommits",
types: [
{ type: "feat", section: "🚀 Features" },
{ type: "fix", section: "🐞 Bug Fixes" },
{ type: "perf", section: "🏎 Performance" },
{ type: "chore", section: "🏡 Other Changes" },
{ type: "docs", section: "🏡 Other Changes" },
{ type: "refactor", section: "🏡 Other Changes" },
{ type: "test", section: "🏡 Other Changes" },
{ type: "ci", section: "🏡 Other Changes" },
{ type: "style", section: "🏡 Other Changes" },
{ type: "build", section: "🏡 Other Changes" },
{ type: "revert", section: "🏡 Other Changes" },
{ type: "ops", section: "🏡 Other Changes" },
],
},
// This maps the breaking change (eg. `!` like `feat!: ...`) section to your custom title
presetConfig: {
header: "🚨 Breaking Changes"
},
// Path filtering that changelogithub does not support for scoped release notes per package.
gitRawCommitsOpts: {
path: [".", "../../tsconfig.json"]
}
}
},
git: {
requireCleanWorkingDir: false,
addUntrackedFiles: true,
tagName: `${name}-v\${version}`,
commitMessage: `chore(${name}): release v\${version}`,
},
github: {
release: true,
releaseName: `${name} \${version}`,
}
});
export default baseConfig;