From 8c01312ecb5fa2c27340f123316df112b67e8582 Mon Sep 17 00:00:00 2001 From: molvqingtai Date: Fri, 27 Sep 2024 18:39:22 +0800 Subject: [PATCH] fix: add packge.json & .zip to assets --- .releaserc | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/.releaserc b/.releaserc index 4032799..4d61b12 100644 --- a/.releaserc +++ b/.releaserc @@ -5,27 +5,29 @@ "plugins": [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", - [ - "@semantic-release/exec", - { + "@semantic-release/changelog", + { + "name": "@semantic-release/exec", + "config": { "prepareCmd": "pnpm pack:chrome" } - ], - "@semantic-release/changelog", - "@semantic-release/github", - { - "assets": [ - { - "path": ".output/web-chat-0.0.1-chrome.zip" - }, - { - "path": "package.json" - } - ], - "labels": [ - "release" - ] }, + [ + "@semantic-release/github", + { + "assets": [ + { + "path": ".output/web-chat-{{nextRelease.version}}-chrome.zip" + }, + { + "path": "package.json" + } + ], + "labels": [ + "release" + ] + } + ], "@semantic-release/git" ] }