Skip to content

Instantly share code, notes, and snippets.

@matzar
Created August 28, 2023 10:42
Show Gist options
  • Save matzar/f25898c5bfbed2598cf36b99f62c7d79 to your computer and use it in GitHub Desktop.
Save matzar/f25898c5bfbed2598cf36b99f62c7d79 to your computer and use it in GitHub Desktop.
.releaserc is a configuration file for semantic-release, dictating automated versioning based on commit conventions, targeting the main branch, and utilizing the "angular" preset with custom release rules for different commit types while integrating with GitHub.
{
"branches": [
"main"
],
"debug": true,
"ci": true,
"dryRun": false,
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "angular",
"releaseRules": [
{
"type": "build",
"release": "patch"
},
{
"type": "chore",
"release": "patch"
},
{
"type": "ci",
"release": "patch"
},
{
"type": "deps",
"release": "patch"
},
{
"type": "docs",
"release": "patch"
},
{
"type": "fix",
"release": "patch"
},
{
"type": "perf",
"release": "patch"
},
{
"type": "refactor",
"release": "patch"
},
{
"type": "revert",
"release": "patch"
},
{
"type": "style",
"release": "patch"
},
{
"type": "test",
"release": "patch"
},
{
"type": "feat",
"release": "minor"
},
{
"type": "breaking",
"release": "major"
}
],
"parserOpts": {
"noteKeywords": [
"BREAKING CHANGE",
"BREAKING CHANGES"
]
}
}
],
"@semantic-release/release-notes-generator",
"@semantic-release/github"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment