fix toolcache
parent
817ef3e405
commit
3b39c278a3
|
|
@ -73228,7 +73228,7 @@ function getNode(versionSpec, stable, checkLatest, auth, arch = os.arch()) {
|
|||
let toolPath;
|
||||
if (isNightly) {
|
||||
const nightlyVersion = findNightlyVersionInHostedToolcache(versionSpec, osArch);
|
||||
toolPath = tc.find('node', nightlyVersion, osArch);
|
||||
toolPath = nightlyVersion && tc.find('node', nightlyVersion, osArch);
|
||||
}
|
||||
else {
|
||||
toolPath = tc.find('node', versionSpec, osArch);
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ export async function getNode(
|
|||
versionSpec,
|
||||
osArch
|
||||
);
|
||||
toolPath = tc.find('node', nightlyVersion, osArch);
|
||||
toolPath = nightlyVersion && tc.find('node', nightlyVersion, osArch);
|
||||
} else {
|
||||
toolPath = tc.find('node', versionSpec, osArch);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue