Repository navigation
Expand file tree
/
Copy pathrelease-workspace.config.ts
More file actions
51 lines (49 loc) · 1.68 KB
/
Copy pathrelease-workspace.config.ts
File metadata and controls
51 lines (49 loc) · 1.68 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
import type { ReleaseWorkspaceOptions } from "@exadev/semantic-release-workspace";
const config: Pick<
ReleaseWorkspaceOptions,
"branches" | "commitStrategy" | "plugins" | "analyzeCommits" | "generateNotes"
> = {
branches: ["main"],
commitStrategy: "single",
plugins: [
"@semantic-release/changelog",
["@semantic-release/npm", { npmPublish: true }],
"@semantic-release/github",
],
analyzeCommits: {
preset: "conventionalcommits",
releaseRules: [
{ breaking: true, release: "major" },
{ type: "feat", release: "minor" },
{ type: "fix", release: "patch" },
{ type: "perf", release: "patch" },
{ type: "revert", release: "patch" },
{ type: "refactor", release: "patch" },
{ type: "docs", release: "patch" },
{ type: "style", release: "patch" },
{ type: "test", release: "patch" },
{ type: "build", release: "patch" },
{ type: "ci", release: "patch" },
{ type: "chore", release: "patch" },
],
},
generateNotes: {
preset: "conventionalcommits",
presetConfig: {
types: [
{ type: "feat", section: "Features" },
{ type: "fix", section: "Bug Fixes" },
{ type: "perf", section: "Performance Improvements" },
{ type: "revert", section: "Reverts" },
{ type: "refactor", section: "Code Refactoring" },
{ type: "docs", section: "Documentation" },
{ type: "style", section: "Styles" },
{ type: "test", section: "Tests" },
{ type: "build", section: "Build System" },
{ type: "ci", section: "Continuous Integration" },
{ type: "chore", section: "Miscellaneous Chores" },
],
},
},
};
export default config;