mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 03:28:42 +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;
|
||||
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…
Add table
Reference in a new issue