Skip to content

Commit

Permalink
fix(build): use exec plugin for github asset (#332)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
svnv committed Feb 27, 2024
1 parent d67e4f5 commit ecffde2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
]
Expand Down

0 comments on commit ecffde2

Please sign in to comment.