Skip to content

Commit ecffde2

Browse files
authored
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.
1 parent d67e4f5 commit ecffde2

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.releaserc.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,17 @@
33
"plugins": [
44
"@semantic-release/commit-analyzer",
55
"@semantic-release/release-notes-generator",
6-
6+
"@semantic-release/npm",
77
[
8-
"@semantic-release/npm",
8+
"@semantic-release/exec",
99
{
10-
"npmPublish": true,
11-
"pkgRoot": ".",
12-
"tarballDir": "dist"
10+
"publish": "npm pack"
1311
}
1412
],
1513
[
1614
"@semantic-release/github",
1715
{
18-
"assets": "dist/*.tgz"
16+
"assets": "./*.tgz"
1917
}
2018
]
2119
]

0 commit comments

Comments
 (0)