fix: release flow
This commit is contained in:
parent
087af79229
commit
aa0088bbc9
2 changed files with 7 additions and 5 deletions
2
.github/workflows/cd.yml
vendored
2
.github/workflows/cd.yml
vendored
|
@ -39,6 +39,6 @@ jobs:
|
||||||
version: latest
|
version: latest
|
||||||
- run: pnpm install --ignore-scripts
|
- run: pnpm install --ignore-scripts
|
||||||
- run: pnpm wxt prepare
|
- run: pnpm wxt prepare
|
||||||
- run: pnpm semantic-release --debug
|
- run: pnpm semantic-release
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.WEB_CHAT_GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.WEB_CHAT_GITHUB_TOKEN }}
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
/**
|
/**
|
||||||
* @type {import('semantic-release').GlobalConfig}
|
* @type {import('semantic-release').GlobalConfig}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { name } from 'package.json'
|
||||||
export default {
|
export default {
|
||||||
branches: ['master'],
|
branches: ['master'],
|
||||||
plugins: [
|
plugins: [
|
||||||
|
@ -26,13 +28,13 @@ export default {
|
||||||
[
|
[
|
||||||
'@semantic-release/exec',
|
'@semantic-release/exec',
|
||||||
{
|
{
|
||||||
prepareCmd: 'cp .output/web-chat-${nextRelease.version}-chrome.zip .output/web-chat-chrome.zip'
|
prepareCmd: `cp .output/${name}-\${nextRelease.version}-chrome.zip .output/${name}-chrome.zip`
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'@semantic-release/exec',
|
'@semantic-release/exec',
|
||||||
{
|
{
|
||||||
prepareCmd: 'cp .output/web-chat-${nextRelease.version}-firefox.zip .output/web-chat-firefox.zip'
|
prepareCmd: `cp .output/${name}-\${nextRelease.version}-firefox.zip .output/${name}-firefox.zip`
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
@ -40,10 +42,10 @@ export default {
|
||||||
{
|
{
|
||||||
assets: [
|
assets: [
|
||||||
{
|
{
|
||||||
path: '.output/web-chat-chrome.zip'
|
path: `.output/${name}-chrome.zip`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '.output/web-chat-firefox.zip'
|
path: `.output/${name}-firefox.zip`
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
labels: ['release']
|
labels: ['release']
|
||||||
|
|
Loading…
Reference in a new issue