|
| 1 | +{ |
| 2 | + "preset": "angular", |
| 3 | + "branches": "main", |
| 4 | + "plugins": [ |
| 5 | + ["@semantic-release/commit-analyzer", { |
| 6 | + "preset": "conventionalcommits", |
| 7 | + "releaseRules": [ |
| 8 | + {"type": "feat", "release": "minor"}, |
| 9 | + {"type": "fix", "release": "patch"}, |
| 10 | + {"type": "refactor", "release": "patch"}, |
| 11 | + {"type": "perf", "release": "patch"}, |
| 12 | + {"type": "revert", "release": "patch"}, |
| 13 | + {"type": "build", "release": "patch"}, |
| 14 | + {"type": "deps", "release": "patch"}, |
| 15 | + {"type": "chore", "release": "patch"}, |
| 16 | + {"type": "bugfix", "release": "patch"}, |
| 17 | + {"scope": "skip-log", "release": false} |
| 18 | + ], |
| 19 | + "parserOpts": { |
| 20 | + "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"] |
| 21 | + } |
| 22 | + }], |
| 23 | + ["@semantic-release/release-notes-generator", { |
| 24 | + "preset": "conventionalcommits", |
| 25 | + "presetConfig": { |
| 26 | + "header": "Goo {{}}", |
| 27 | + "types": [ |
| 28 | + {"type": "feat", "section": "Features", "hidden": false}, |
| 29 | + {"type": "fix", "section": "Bug Fixes", "hidden": false}, |
| 30 | + {"type": "refactor", "section": "Code Refactoring", "hidden": false}, |
| 31 | + {"type": "perf", "section": "Optimization", "hidden": false}, |
| 32 | + {"type": "revert", "section": "Reverts", "hidden": false}, |
| 33 | + {"type": "build", "section": "Build Updates", "hidden": false}, |
| 34 | + {"type": "deps", "section": "Dependency Updates", "hidden": false}, |
| 35 | + {"type": "chore", "section": "Internal Changes", "hidden": false}, |
| 36 | + {"type": "docs", "section": "Documentation", "hidden": true}, |
| 37 | + {"type": "test", "section": "Tests", "hidden": true}, |
| 38 | + {"type": "style", "section": "Styling", "hidden": true}, |
| 39 | + {"type": "ci", "section": "Continuous Integration", "hidden": true} |
| 40 | + ] |
| 41 | + }, |
| 42 | + "parserOpts": { |
| 43 | + "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"] |
| 44 | + }, |
| 45 | + "writerOpts": { |
| 46 | + "commitsSort": ["subject", "scope"] |
| 47 | + } |
| 48 | + }], |
| 49 | + "@semantic-release/changelog", |
| 50 | + "@semantic-release/git", |
| 51 | + ["@semantic-release/exec", { |
| 52 | + "publishCmd": "echo \"${nextRelease.notes}\" > /tmp/release-notes.md; goreleaser release --release-notes /tmp/release-notes.md --rm-dist" |
| 53 | + }] |
| 54 | + ] |
| 55 | +} |
0 commit comments