Skip to content

Commit

Permalink
fix(releases): specify releases rules
Browse files Browse the repository at this point in the history
Define release rules to make releases using angular conventional
changelog.
  • Loading branch information
mijailr committed Aug 14, 2020
1 parent bc45d38 commit cec519e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 27 deletions.
35 changes: 35 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"branches": ["+([0-9])?(.{+([0-9]),x}).x", "main"],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "angular",
"releaseRules": [
{ "type": "docs", "scope": "README", "release": "patch" },
{ "type": "ref", "release": "patch" },
{ "type": "build", "release": "minor" },
{ "type": "feat", "release": "minor" },
{ "type": "fix", "release": "patch" }
],
"parserOpts": {
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"]
}
}
],
"@semantic-release/release-notes-generator",
"@semantic-release/github",
[
"@semantic-release/npm",
{
"pkgRoot": "./pkg"
}
],
[
"semantic-release-plugin-update-version-in-files",
{
"files": ["pkg/dist-web/*", "pkg/dist-node/*", "pkg/*/version.*"]
}
]
]
}
27 changes: 0 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,32 +75,5 @@
"@pika/plugin-build-web"
]
]
},
"release": {
"branches": [
"+([0-9])?(.{+([0-9]),x}).x",
"main"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github",
[
"@semantic-release/npm",
{
"pkgRoot": "./pkg"
}
],
[
"semantic-release-plugin-update-version-in-files",
{
"files": [
"pkg/dist-web/*",
"pkg/dist-node/*",
"pkg/*/version.*"
]
}
]
]
}
}

0 comments on commit cec519e

Please sign in to comment.