mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 09:21:00 +00:00
fix toolcache
This commit is contained in:
parent
817ef3e405
commit
3b39c278a3
2 changed files with 2 additions and 2 deletions
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…
Add table
Reference in a new issue