fix: release flow
This commit is contained in:
parent
2a77a6ff94
commit
5c043a22d2
3 changed files with 38 additions and 32 deletions
31
.releaserc
31
.releaserc
|
@ -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
38
.releaserc.mjs
Normal 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'
|
||||
]
|
||||
}
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue