Skip to content

Commit 76d5a20

Browse files
committed
fix: try to store npm tarball in /tmp dir named with git hash
1 parent 7fa411b commit 76d5a20

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

release.config.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ module.exports = {
1515
[
1616
'@semantic-release/npm',
1717
{
18-
// Do not set 'tarballDir' without considering this issue: https://github.com/semantic-release/npm/issues/535
18+
// Do not set 'tarballDir' to a relative path without considering this issue:
19+
// https://github.com/semantic-release/npm/issues/535
20+
// If the tarball is within the package directory, it will be included in the second 'prepack' run.
21+
tarballDir: '/tmp/semantic-release-${nextRelease.gitHead}/'
1922
}
2023
],
2124
[
@@ -30,7 +33,7 @@ module.exports = {
3033
[
3134
'@semantic-release/github',
3235
{
33-
assets: 'pack/*.tgz'
36+
assets: '/tmp/semantic-release-${nextRelease.gitHead}/*.tgz'
3437
}
3538
]
3639
]

0 commit comments

Comments
 (0)