@selrious/semver
Version:
Semantic Versioning Playground
73 lines (72 loc) • 1.89 kB
JavaScript
/**
* @type {import('semantic-release').GlobalConfig}
*/
export default {
branches: [
{
name: "main",
},
{ name: "+([0-9])?(.{+([0-9]),x}).x" },
{ name: "pre/rc", prerelease: '${name.replace(/^pre\\//g, "")}' },
{ name: "beta", prerelease: true },
{ name: "alpha", prerelease: true },
],
dryRun: false,
debug: false,
plugins: [
"@semantic-release/commit-analyzer",
[
"@semantic-release/release-notes-generator",
{
preset: "conventionalcommits",
presetConfig: {
types: [
{ type: "feat", section: "✨ Features" },
{ type: "fix", section: "🐛 Bug Fixes" },
{ type: "docs", section: "📚 Documentation" },
{ type: "style", section: "💎 Styles" },
{ type: "refactor", section: "📦 Code Refactoring" },
{ type: "perf", section: "🚀 Performance Improvements" },
{ type: "test", section: "🚨 Tests" },
{ type: "build", section: "🛠 Builds" },
{ type: "ci", section: "⚙️ Continuous Integrations" },
{ type: "chore", section: "♻️ Chores" },
{ type: "revert", section: "🗑 Reverts" },
],
},
},
],
[
"@semantic-release/changelog",
{
changelogFile: "docs/CHANGELOG.md",
},
],
[
"@semantic-release/npm",
{
tarballDir: "dist",
},
],
[
"@semantic-release/git",
{
assets: [
"dist/**/*.{js,css}",
"docs",
"package.json",
"package-lock.json",
"CHANGELOG.md",
],
message:
"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}",
},
],
[
"@semantic-release/github",
{
assets: "pack/*.tgz",
},
],
],
};