fix: release flow

This commit is contained in:
molvqingtai 2024-09-28 09:15:37 +08:00
parent efce76a81d
commit ffa8d4233b
2 changed files with 37 additions and 38 deletions

37
.releaserc Normal file
View file

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

View file

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