|
| 1 | +export default { |
| 2 | + branches: ["main"], |
| 3 | + repositoryUrl: "https://github.com/riligar/components-kit.git", |
| 4 | + tagFormat: "v${version}", |
| 5 | + plugins: [ |
| 6 | + [ |
| 7 | + "@semantic-release/commit-analyzer", |
| 8 | + { |
| 9 | + preset: "conventionalcommits", |
| 10 | + releaseRules: [ |
| 11 | + { type: "feat", release: "minor" }, |
| 12 | + { type: "fix", release: "patch" }, |
| 13 | + { type: "docs", release: "patch" }, |
| 14 | + { type: "style", release: "patch" }, |
| 15 | + { type: "refactor", release: "patch" }, |
| 16 | + { type: "perf", release: "patch" }, |
| 17 | + { type: "test", release: "patch" }, |
| 18 | + { type: "build", release: "patch" }, |
| 19 | + { type: "ci", release: "patch" }, |
| 20 | + { type: "chore", release: "patch" }, |
| 21 | + { breaking: true, release: "major" }, |
| 22 | + ], |
| 23 | + }, |
| 24 | + ], |
| 25 | + [ |
| 26 | + "@semantic-release/release-notes-generator", |
| 27 | + { |
| 28 | + preset: "conventionalcommits", |
| 29 | + presetConfig: { |
| 30 | + types: [ |
| 31 | + { type: "feat", section: "✨ Novas Funcionalidades" }, |
| 32 | + { type: "fix", section: "🐛 Correções" }, |
| 33 | + { type: "docs", section: "📚 Documentação" }, |
| 34 | + { type: "style", section: "💄 Estilo" }, |
| 35 | + { type: "refactor", section: "♻️ Refatoração" }, |
| 36 | + { type: "perf", section: "⚡ Performance" }, |
| 37 | + { type: "test", section: "✅ Testes" }, |
| 38 | + { type: "build", section: "📦 Build" }, |
| 39 | + { type: "ci", section: "🔧 CI/CD" }, |
| 40 | + { type: "chore", section: "🔨 Manutenção" }, |
| 41 | + ], |
| 42 | + }, |
| 43 | + }, |
| 44 | + ], |
| 45 | + [ |
| 46 | + "@semantic-release/changelog", |
| 47 | + { |
| 48 | + changelogFile: "CHANGELOG.md", |
| 49 | + }, |
| 50 | + ], |
| 51 | + [ |
| 52 | + "@semantic-release/npm", |
| 53 | + { |
| 54 | + npmPublish: true, |
| 55 | + }, |
| 56 | + ], |
| 57 | + [ |
| 58 | + "@semantic-release/git", |
| 59 | + { |
| 60 | + assets: ["package.json", "CHANGELOG.md"], |
| 61 | + message: |
| 62 | + "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}", |
| 63 | + }, |
| 64 | + ], |
| 65 | + [ |
| 66 | + "@semantic-release/github", |
| 67 | + { |
| 68 | + releasedLabels: ["released"], |
| 69 | + addReleases: "bottom", |
| 70 | + }, |
| 71 | + ], |
| 72 | + ], |
| 73 | +}; |
0 commit comments