From ffa8d4233ba55d623d9870e70c952d3b176c25db Mon Sep 17 00:00:00 2001 From: molvqingtai Date: Sat, 28 Sep 2024 09:15:37 +0800 Subject: [PATCH] fix: release flow --- .releaserc | 37 +++++++++++++++++++++++++++++++++++++ .releaserc.mjs | 38 -------------------------------------- 2 files changed, 37 insertions(+), 38 deletions(-) create mode 100644 .releaserc delete mode 100644 .releaserc.mjs diff --git a/.releaserc b/.releaserc new file mode 100644 index 0000000..6fc32ec --- /dev/null +++ b/.releaserc @@ -0,0 +1,37 @@ +{ + "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": [ + { + "path": ".output/web-chat-${nextRelease.version}-chrome.zip", + "label": "Chrome Extension Installation Package" + } + ], + "labels": [ + "release" + ] + } + ], + "@semantic-release/git" + ] +} diff --git a/.releaserc.mjs b/.releaserc.mjs deleted file mode 100644 index 240041e..0000000 --- a/.releaserc.mjs +++ /dev/null @@ -1,38 +0,0 @@ -/** - * @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' - ] -}