|
| 1 | +{ |
| 2 | + "branches": ["main"], |
| 3 | + "plugins": [ |
| 4 | + [ |
| 5 | + "@semantic-release/commit-analyzer", |
| 6 | + { |
| 7 | + "preset": "conventionalcommits", |
| 8 | + "releaseRules": [ |
| 9 | + {"type": "feat", "release": "minor"}, |
| 10 | + {"type": "fix", "release": "patch"}, |
| 11 | + {"type": "perf", "release": "patch"}, |
| 12 | + {"type": "revert", "release": "patch"}, |
| 13 | + {"type": "docs", "release": "patch"}, |
| 14 | + {"type": "style", "release": "patch"}, |
| 15 | + {"type": "refactor", "release": "patch"}, |
| 16 | + {"type": "test", "release": "patch"}, |
| 17 | + {"type": "ci", "release": "patch"}, |
| 18 | + {"type": "chore", "release": "patch"}, |
| 19 | + {"type": "build", "release": "patch"}, |
| 20 | + {"breaking": true, "release": "major"}, |
| 21 | + {"scope": "no-release", "release": false} |
| 22 | + ], |
| 23 | + "parserOpts": { |
| 24 | + "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"] |
| 25 | + } |
| 26 | + } |
| 27 | + ], |
| 28 | + [ |
| 29 | + "@semantic-release/release-notes-generator", |
| 30 | + { |
| 31 | + "preset": "conventionalcommits", |
| 32 | + "presetConfig": { |
| 33 | + "types": [ |
| 34 | + {"type": "feat", "section": "🚀 Features"}, |
| 35 | + {"type": "fix", "section": "🐛 Bug Fixes"}, |
| 36 | + {"type": "perf", "section": "⚡ Performance Improvements"}, |
| 37 | + {"type": "revert", "section": "⏪ Reverts"}, |
| 38 | + {"type": "docs", "section": "📚 Documentation"}, |
| 39 | + {"type": "style", "section": "💄 Styles"}, |
| 40 | + {"type": "refactor", "section": "♻️ Code Refactoring"}, |
| 41 | + {"type": "test", "section": "✅ Tests"}, |
| 42 | + {"type": "ci", "section": "🔧 CI/CD"}, |
| 43 | + {"type": "chore", "section": "🏗️ Chores"}, |
| 44 | + {"type": "build", "section": "📦 Build System"} |
| 45 | + ] |
| 46 | + }, |
| 47 | + "writerOpts": { |
| 48 | + "commitsSort": ["subject", "scope"] |
| 49 | + } |
| 50 | + } |
| 51 | + ], |
| 52 | + [ |
| 53 | + "@semantic-release/changelog", |
| 54 | + { |
| 55 | + "changelogFile": "CHANGELOG.md" |
| 56 | + } |
| 57 | + ], |
| 58 | + [ |
| 59 | + "@semantic-release/github", |
| 60 | + { |
| 61 | + "assets": [ |
| 62 | + { |
| 63 | + "path": "CHANGELOG.md", |
| 64 | + "label": "Changelog" |
| 65 | + } |
| 66 | + ], |
| 67 | + "successComment": false, |
| 68 | + "failComment": false, |
| 69 | + "releasedLabels": false |
| 70 | + } |
| 71 | + ], |
| 72 | + [ |
| 73 | + "@semantic-release/git", |
| 74 | + { |
| 75 | + "assets": ["CHANGELOG.md"], |
| 76 | + "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" |
| 77 | + } |
| 78 | + ] |
| 79 | + ] |
| 80 | +} |
0 commit comments