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",