fix: add packge.json & .zip to assets

This commit is contained in:
molvqingtai 2024-09-27 18:39:22 +08:00
parent bf05a9fd63
commit 8c01312ecb

View file

@ -5,18 +5,19 @@
"plugins": [ "plugins": [
"@semantic-release/commit-analyzer", "@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator", "@semantic-release/release-notes-generator",
[ "@semantic-release/changelog",
"@semantic-release/exec",
{ {
"name": "@semantic-release/exec",
"config": {
"prepareCmd": "pnpm pack:chrome" "prepareCmd": "pnpm pack:chrome"
} }
], },
"@semantic-release/changelog", [
"@semantic-release/github", "@semantic-release/github",
{ {
"assets": [ "assets": [
{ {
"path": ".output/web-chat-0.0.1-chrome.zip" "path": ".output/web-chat-{{nextRelease.version}}-chrome.zip"
}, },
{ {
"path": "package.json" "path": "package.json"
@ -25,7 +26,8 @@
"labels": [ "labels": [
"release" "release"
] ]
}, }
],
"@semantic-release/git" "@semantic-release/git"
] ]
} }