diff --git a/.releaserc.json b/.releaserc.json new file mode 100644 index 0000000..dd2917e --- /dev/null +++ b/.releaserc.json @@ -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.*"] + } + ] + ] +} diff --git a/package.json b/package.json index af69237..6e336aa 100644 --- a/package.json +++ b/package.json @@ -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.*" - ] - } - ] - ] } }