fix: release flow
This commit is contained in:
parent
efce76a81d
commit
ffa8d4233b
2 changed files with 37 additions and 38 deletions
37
.releaserc
Normal file
37
.releaserc
Normal 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"
|
||||
]
|
||||
}
|
|
@ -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'
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue