|
1 | 1 | module.exports = {
|
2 | 2 | branches: [{ name: "main" }, { name: "beta", prerelease: true }],
|
3 | 3 | plugins: [
|
4 |
| - "@semantic-release/commit-analyzer", |
5 | 4 | [
|
6 |
| - "@semantic-release/release-notes-generator", |
| 5 | + "@semantic-release/commit-analyzer", |
7 | 6 | {
|
8 |
| - preset: "conventionalcommits", |
9 |
| - releaseRules: [ |
| 7 | + "preset": "angular", |
| 8 | + "parserOpts": { |
| 9 | + "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"] |
| 10 | + }, |
| 11 | + "releaseRules": [ |
10 | 12 | { type: "feat", release: "major" },
|
11 | 13 | { type: "fix", release: "major" },
|
12 |
| - { type: "perf", release: "patch" }, |
| 14 | + { type: "perf", release: "major" }, |
13 | 15 | { type: "BREAKING CHANGE", release: "major" },
|
| 16 | + { type: "docs", release: false }, |
| 17 | + { type: "style", release: false }, |
| 18 | + { type: "refactor", release: false }, |
| 19 | + { type: "test", release: false }, |
| 20 | + { type: "chore", release: false }, |
14 | 21 | ],
|
15 |
| - }, |
| 22 | + } |
| 23 | + ], |
| 24 | + [ |
| 25 | + "@semantic-release/release-notes-generator", |
| 26 | + { |
| 27 | + "preset": "angular", |
| 28 | + "parserOpts": { |
| 29 | + "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"] |
| 30 | + }, |
| 31 | + "writerOpts": { |
| 32 | + "commitsSort": ["subject", "scope"] |
| 33 | + } |
| 34 | + } |
16 | 35 | ],
|
17 | 36 | "@semantic-release/npm",
|
18 | 37 | [
|
|
0 commit comments