|
| 1 | +module.exports = { |
| 2 | + dryRun: false, |
| 3 | + plugins: [ |
| 4 | + [ |
| 5 | + "@semantic-release/commit-analyzer", |
| 6 | + { |
| 7 | + preset: "angular", |
| 8 | + releaseRules: [ |
| 9 | + { breaking: true, release: "major" }, |
| 10 | + { type: "feat", release: "minor" }, |
| 11 | + { type: "fix", release: "patch" }, |
| 12 | + { type: "style", release: "patch" }, |
| 13 | + { type: "refactor", release: "patch" }, |
| 14 | + { type: "perf", release: "patch" }, |
| 15 | + { type: "revert", release: "patch" }, |
| 16 | + { type: "chore", scope: "port*", release: "patch" }, |
| 17 | + { type: "build", release: false }, |
| 18 | + { type: "ci", release: false }, |
| 19 | + { type: "docs", release: false }, |
| 20 | + { type: "test", release: false }, |
| 21 | + ], |
| 22 | + parseOpts: { |
| 23 | + noteKeywords: ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"] |
| 24 | + }, |
| 25 | + }, |
| 26 | + ], |
| 27 | + [ |
| 28 | + "@semantic-release/release-notes-generator", |
| 29 | + { |
| 30 | + preset: "conventionalcommits", |
| 31 | + presetConfig: { |
| 32 | + types: [ |
| 33 | + { type: "feat", section: "Features" }, |
| 34 | + { type: "fix", section: "Bug Fixes" }, |
| 35 | + { type: "style", section: "Style" }, |
| 36 | + { type: "refactor", section: "Refactor" }, |
| 37 | + { type: "perf", section: "Performance" }, |
| 38 | + { type: "revert", section: "Reverts" }, |
| 39 | + { type: "chore", scope: "port*", section: "Ports" }, |
| 40 | + { type: "chore", section: "Chores" }, |
| 41 | + { type: "build", section: "Build" }, |
| 42 | + { type: "ci", section: "CI" }, |
| 43 | + { type: "docs", section: "Docs" }, |
| 44 | + { type: "test", section: "Tests" }, |
| 45 | + ], |
| 46 | + }, |
| 47 | + parserOpts: { |
| 48 | + noteKeywords: ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"] |
| 49 | + }, |
| 50 | + }, |
| 51 | + ], |
| 52 | + [ |
| 53 | + "@semantic-release/exec", |
| 54 | + { |
| 55 | + publishCmd: [ |
| 56 | + "git tag -a -f v${nextRelease.version} --cleanup=whitespace -m '${nextRelease.notes}'", |
| 57 | + "git push --force origin v${nextRelease.version}" |
| 58 | + ].join(" && "), |
| 59 | + } |
| 60 | + ], |
| 61 | + ["@semantic-release/changelog", { changelogFile: "CHANGELOG.md" }], |
| 62 | + [ |
| 63 | + "@semantic-release/git", |
| 64 | + { |
| 65 | + assets: ["CHANGELOG.md"], |
| 66 | + message: "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" |
| 67 | + }, |
| 68 | + ], |
| 69 | + "@semantic-release/github", |
| 70 | + ], |
| 71 | +}; |
0 commit comments