From b187b62407b1c3eb934a8f9a6880635823722025 Mon Sep 17 00:00:00 2001 From: zhumeisongsong Date: Sun, 15 Dec 2024 15:38:38 +0900 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20=F0=9F=A4=96=20use=20createMonolit?= =?UTF-8?q?hicReleaseConfig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 9 +-------- pnpm-lock.yaml | 8 ++++++++ release.config.cjs | 9 +++++++++ 3 files changed, 18 insertions(+), 8 deletions(-) create mode 100644 release.config.cjs diff --git a/package.json b/package.json index f1b5ca6..ea590fc 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "@nestjs/mongoose": "^10.1.0", "@nestjs/platform-express": "^10.4.7", "@nestjs/throttler": "^6.2.1", + "@zhumeisong/semantic-release-config": "^1.3.3", "aws-sdk": "^2.1692.0", "axios": "^1.7.7", "class-validator": "^0.14.1", @@ -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..3f1d334 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -44,6 +44,9 @@ importers: '@nestjs/throttler': specifier: ^6.2.1 version: 6.3.0(@nestjs/common@10.4.15(class-validator@0.14.1)(reflect-metadata@0.2.2)(rxjs@7.8.1))(@nestjs/core@10.4.15)(reflect-metadata@0.2.2) + '@zhumeisong/semantic-release-config': + specifier: ^1.3.3 + version: 1.3.3 aws-sdk: specifier: ^2.1692.0 version: 2.1692.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 +}); From 0fe47bed1cec9e2d6e5ff3556d00a84febf2b818 Mon Sep 17 00:00:00 2001 From: zhumeisongsong Date: Sun, 15 Dec 2024 15:43:22 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Move=20semantic-relea?= =?UTF-8?q?se=20config=20to=20devDependencies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- pnpm-lock.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index ea590fc..5fae898 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,6 @@ "@nestjs/mongoose": "^10.1.0", "@nestjs/platform-express": "^10.4.7", "@nestjs/throttler": "^6.2.1", - "@zhumeisong/semantic-release-config": "^1.3.3", "aws-sdk": "^2.1692.0", "axios": "^1.7.7", "class-validator": "^0.14.1", @@ -54,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", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3f1d334..84b2d9c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -44,9 +44,6 @@ importers: '@nestjs/throttler': specifier: ^6.2.1 version: 6.3.0(@nestjs/common@10.4.15(class-validator@0.14.1)(reflect-metadata@0.2.2)(rxjs@7.8.1))(@nestjs/core@10.4.15)(reflect-metadata@0.2.2) - '@zhumeisong/semantic-release-config': - specifier: ^1.3.3 - version: 1.3.3 aws-sdk: specifier: ^2.1692.0 version: 2.1692.0 @@ -141,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