From ecffde27c468aad43aa2e7a1913f407660faf1ac Mon Sep 17 00:00:00 2001 From: Sven Nicolai Viig Date: Tue, 27 Feb 2024 09:45:06 +0100 Subject: [PATCH] fix(build): use exec plugin for github asset (#332) Fixes #331 Ref. #330 Rel. semantic-release/npm#535 Rel. https://github.com/Dintero/Dintero.Checkout.Web.SDK/actions/runs/8045967660/job/21972265552 The previous config change did not work as intended. The npm plugin for semantic release seems to be running twice and the .tgz is not present in the dist folder, and from the logs it does not even look like the package created contains the actual build files either. Instead of trying to make sense of the npm plugin we try using the exec plugin to run npm pack before the github plugin creates is release. --- .releaserc.json | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.releaserc.json b/.releaserc.json index cae8a10..9c81140 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -3,19 +3,17 @@ "plugins": [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", - + "@semantic-release/npm", [ - "@semantic-release/npm", + "@semantic-release/exec", { - "npmPublish": true, - "pkgRoot": ".", - "tarballDir": "dist" + "publish": "npm pack" } ], [ "@semantic-release/github", { - "assets": "dist/*.tgz" + "assets": "./*.tgz" } ] ]