diff --git a/package.json b/package.json index f1b5ca6..5fae898 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "@types/jest": "^29.5.14", "@types/node": "~22.10.0", "@zhumeisong/git-cz-config": "^1.2.0", + "@zhumeisong/semantic-release-config": "^1.3.3", "eslint": "^9.14.0", "eslint-config-prettier": "^9.1.0", "git-cz": "^4.9.0", @@ -71,14 +72,6 @@ "release": { "branches": [ "main" - ], - "plugins": [ - "@semantic-release/commit-analyzer", - "@semantic-release/release-notes-generator", - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - "@semantic-release/git" ] }, "packageManager": "pnpm@9.15.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5edaeff..84b2d9c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -138,6 +138,9 @@ importers: '@zhumeisong/git-cz-config': specifier: ^1.2.0 version: 1.2.4 + '@zhumeisong/semantic-release-config': + specifier: ^1.3.3 + version: 1.3.3 eslint: specifier: ^9.14.0 version: 9.16.0 @@ -2282,6 +2285,9 @@ packages: '@zhumeisong/git-cz-config@1.2.4': resolution: {integrity: sha512-TYG6Mzuy0xGquXlxCkG0fgaPSOr4YwLC/IprXxncWoBJafxloX8FuSIhCsBxYU0P4a+hecJn0Uy8fImJ32njWA==} + '@zhumeisong/semantic-release-config@1.3.3': + resolution: {integrity: sha512-ZSB4ztFvcpbXjhXRx0mZL3g1L+q3hsifWexlADCewFu0czYmbka4q3OOuYJSIB4imTcnKJXP7vsVuSBGGSQTAA==} + '@zkochan/js-yaml@0.0.7': resolution: {integrity: sha512-nrUSn7hzt7J6JWgWGz78ZYI8wj+gdIJdk0Ynjpp8l+trkn58Uqsf6RYrYkEK+3X18EX+TNdtJI0WxAtc+L84SQ==} hasBin: true @@ -10445,6 +10451,8 @@ snapshots: '@zhumeisong/git-cz-config@1.2.4': {} + '@zhumeisong/semantic-release-config@1.3.3': {} + '@zkochan/js-yaml@0.0.7': dependencies: argparse: 2.0.1 diff --git a/release.config.cjs b/release.config.cjs new file mode 100644 index 0000000..4c91721 --- /dev/null +++ b/release.config.cjs @@ -0,0 +1,9 @@ +const { createMonolithicReleaseConfig } = require("@zhumeisong/semantic-release-config"); + +const srcRoot = `./`; +const pkgRoot = `./`; + +module.exports = createMonolithicReleaseConfig({ + srcRoot, + pkgRoot +});