|
| 1 | +/** @type {import('semantic-release').Options} */ |
| 2 | +module.exports = { |
| 3 | + branches: [ |
| 4 | + "+([0-9])?(.{+([0-9]),x}).x", |
| 5 | + "master", |
| 6 | + "next", |
| 7 | + "next-major", |
| 8 | + { name: "beta", prerelease: true }, |
| 9 | + { name: "alpha", prerelease: true }, |
| 10 | + ], |
| 11 | + analyzeCommits: { |
| 12 | + path: "semantic-release-conventional-commits", |
| 13 | + majorTypes: ["major", "breaking"], |
| 14 | + minorTypes: ["minor", "feat", "feature"], |
| 15 | + patchTypes: ["patch", "fix", "bugfix", "refactor", "perf", "revert"], |
| 16 | + }, |
| 17 | + plugins: [ |
| 18 | + [ |
| 19 | + "@semantic-release/commit-analyzer", |
| 20 | + { |
| 21 | + preset: "conventionalcommits", |
| 22 | + parserOpts: { |
| 23 | + noteKeywords: ["breaking:", "breaking-fix:", "breaking-feat:"], |
| 24 | + }, |
| 25 | + releaseRules: [ |
| 26 | + { type: "feat", section: "Features", release: "minor" }, |
| 27 | + { type: "docs", section: "Misc", release: "patch" }, |
| 28 | + { type: "fix", section: "Bug Fixes", release: "patch" }, |
| 29 | + { type: "refactor", section: "Misc", release: "patch" }, |
| 30 | + { type: "docs", section: "Misc", release: "patch" }, |
| 31 | + { type: "perf", section: "Misc", release: "patch" }, |
| 32 | + { type: "build", section: "Misc", release: "patch" }, |
| 33 | + { type: "chore", section: "Misc", release: "patch" }, |
| 34 | + { type: "test", section: "Misc", release: "patch" }, |
| 35 | + ], |
| 36 | + }, |
| 37 | + ], |
| 38 | + [ |
| 39 | + "@semantic-release/release-notes-generator", |
| 40 | + { |
| 41 | + preset: "conventionalcommits", |
| 42 | + parserOpts: { |
| 43 | + noteKeywords: ["breaking"], |
| 44 | + types: [ |
| 45 | + { type: "feat", section: "Features", release: "minor" }, |
| 46 | + { type: "docs", section: "Misc", release: "patch" }, |
| 47 | + { type: "fix", section: "Bug Fixes", release: "patch" }, |
| 48 | + { type: "refactor", section: "Misc", release: "patch" }, |
| 49 | + { type: "docs", section: "Misc", release: "patch" }, |
| 50 | + { type: "perf", section: "Misc", release: "patch" }, |
| 51 | + { type: "build", section: "Misc", release: "patch" }, |
| 52 | + { type: "chore", section: "Misc", release: "patch" }, |
| 53 | + { type: "test", section: "Misc", release: "patch" }, |
| 54 | + ], |
| 55 | + }, |
| 56 | + }, |
| 57 | + ], |
| 58 | + [ |
| 59 | + "@semantic-release/changelog", |
| 60 | + { |
| 61 | + changelogFile: "CHANGELOG.md", |
| 62 | + changelogTitle: "# Change Log", |
| 63 | + }, |
| 64 | + ], |
| 65 | + [ |
| 66 | + "@semantic-release/npm", |
| 67 | + { |
| 68 | + packageRoot: "build", |
| 69 | + }, |
| 70 | + ], |
| 71 | + [ |
| 72 | + "@semantic-release/github", |
| 73 | + { |
| 74 | + assets: ["package.tgz"], |
| 75 | + }, |
| 76 | + ], |
| 77 | + [ |
| 78 | + "@semantic-release/git", |
| 79 | + { |
| 80 | + assets: ["CHANGELOG.md", "package.json"], |
| 81 | + }, |
| 82 | + ], |
| 83 | + ], |
| 84 | +} |
0 commit comments