fix: release flow

This commit is contained in:
molvqingtai 2024-09-28 09:08:07 +08:00
parent 2a77a6ff94
commit 5c043a22d2
3 changed files with 38 additions and 32 deletions

View file

@ -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"
]
}

38
.releaserc.mjs Normal file
View file

@ -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'
]
}

View file

@ -4,7 +4,6 @@
"version": "0.0.1", "version": "0.0.1",
"description": "Chat with anyone on any website.", "description": "Chat with anyone on any website.",
"type": "module", "type": "module",
"private": true,
"scripts": { "scripts": {
"dev": "wxt", "dev": "wxt",
"dev:firefox": "wxt -b firefox", "dev:firefox": "wxt -b firefox",