From 5c043a22d2ff4064d932a1d9df4a1c9b23365528 Mon Sep 17 00:00:00 2001 From: molvqingtai Date: Sat, 28 Sep 2024 09:08:07 +0800 Subject: [PATCH] fix: release flow --- .releaserc | 31 ------------------------------- .releaserc.mjs | 38 ++++++++++++++++++++++++++++++++++++++ package.json | 1 - 3 files changed, 38 insertions(+), 32 deletions(-) delete mode 100644 .releaserc create mode 100644 .releaserc.mjs diff --git a/.releaserc b/.releaserc deleted file mode 100644 index 64b53b6..0000000 --- a/.releaserc +++ /dev/null @@ -1,31 +0,0 @@ -{ - "branches": [ - "master" - ], - "plugins": [ - "@semantic-release/commit-analyzer", - "@semantic-release/release-notes-generator", - "@semantic-release/changelog", - "@semantic-release/npm", - [ - "@semantic-release/exec", - { - "prepareCmd": "pnpm pack:chrome && cat package.json" - } - ], - [ - "@semantic-release/github", - { - "assets": [ - { - "path": ".output/web-chat-${{ nextRelease.version }}-chrome.zip" - } - ], - "labels": [ - "release" - ] - } - ], - "@semantic-release/git" - ] -} diff --git a/.releaserc.mjs b/.releaserc.mjs new file mode 100644 index 0000000..240041e --- /dev/null +++ b/.releaserc.mjs @@ -0,0 +1,38 @@ +/** + * @type {import('semantic-release').GlobalConfig} + */ + +export default { + branches: ['master'], + plugins: [ + '@semantic-release/commit-analyzer', + '@semantic-release/release-notes-generator', + '@semantic-release/changelog', + [ + '@semantic-release/npm', + { + npmPublish: false + } + ], + [ + '@semantic-release/exec', + { + prepareCmd: 'pnpm run pack' + } + ], + [ + '@semantic-release/github', + { + assets: [ + { + // eslint-disable-next-line no-undef + path: `.output/web-chat-${nextRelease.version}-chrome.zip`, + label: 'Chrome Extension Installation Package' + } + ], + labels: ['release'] + } + ], + '@semantic-release/git' + ] +} diff --git a/package.json b/package.json index 69fcda3..ee7cc3b 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,6 @@ "version": "0.0.1", "description": "Chat with anyone on any website.", "type": "module", - "private": true, "scripts": { "dev": "wxt", "dev:firefox": "wxt -b firefox",