diff --git a/publishing/release-rules.cjs b/publishing/release-rules.cjs new file mode 100644 index 000000000..ba84231c0 --- /dev/null +++ b/publishing/release-rules.cjs @@ -0,0 +1,4 @@ +module.exports = [ + { type: "feat", scope: "!", release: "major" }, + { type: "docs", scope: "public", release: "patch" }, +]; \ No newline at end of file diff --git a/sdks/v2-sdk/package.json b/sdks/v2-sdk/package.json index 931e7c812..006a60da8 100644 --- a/sdks/v2-sdk/package.json +++ b/sdks/v2-sdk/package.json @@ -51,19 +51,11 @@ [ "@semantic-release/commit-analyzer", { - "preset": { - "name": "conventionalcommits" - } - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": { - "name": "conventionalcommits" - } + "preset": "angular", + "releaseRules": "../../publishing/release-rules.cjs" } ], + "@semantic-release/release-notes-generator", "@semantic-release/npm", "@semantic-release/github" ]