fix: try to store npm tarball in /tmp dir named with git hash

This commit is contained in:
Christopher Willis-Ford 2024-09-10 14:54:30 -07:00
parent 7fa411b3ba
commit 76d5a20805

View file

@ -15,7 +15,10 @@ module.exports = {
[
'@semantic-release/npm',
{
// Do not set 'tarballDir' without considering this issue: https://github.com/semantic-release/npm/issues/535
// Do not set 'tarballDir' to a relative path without considering this issue:
// https://github.com/semantic-release/npm/issues/535
// If the tarball is within the package directory, it will be included in the second 'prepack' run.
tarballDir: '/tmp/semantic-release-${nextRelease.gitHead}/'
}
],
[
@ -30,7 +33,7 @@ module.exports = {
[
'@semantic-release/github',
{
assets: 'pack/*.tgz'
assets: '/tmp/semantic-release-${nextRelease.gitHead}/*.tgz'
}
]
]