mirror of
https://github.com/actions/setup-node
synced 2025-04-20 07:03:11 +00:00
fix toolcache
This commit is contained in:
parent
817ef3e405
commit
3b39c278a3
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
@ -73228,7 +73228,7 @@ function getNode(versionSpec, stable, checkLatest, auth, arch = os.arch()) {
|
|||||||
let toolPath;
|
let toolPath;
|
||||||
if (isNightly) {
|
if (isNightly) {
|
||||||
const nightlyVersion = findNightlyVersionInHostedToolcache(versionSpec, osArch);
|
const nightlyVersion = findNightlyVersionInHostedToolcache(versionSpec, osArch);
|
||||||
toolPath = tc.find('node', nightlyVersion, osArch);
|
toolPath = nightlyVersion && tc.find('node', nightlyVersion, osArch);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
toolPath = tc.find('node', versionSpec, osArch);
|
toolPath = tc.find('node', versionSpec, osArch);
|
||||||
|
@ -88,7 +88,7 @@ export async function getNode(
|
|||||||
versionSpec,
|
versionSpec,
|
||||||
osArch
|
osArch
|
||||||
);
|
);
|
||||||
toolPath = tc.find('node', nightlyVersion, osArch);
|
toolPath = nightlyVersion && tc.find('node', nightlyVersion, osArch);
|
||||||
} else {
|
} else {
|
||||||
toolPath = tc.find('node', versionSpec, osArch);
|
toolPath = tc.find('node', versionSpec, osArch);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user