mirror of
https://github.com/actions/setup-node.git
synced 2025-07-24 23:48:24 +02:00
minor fix
This commit is contained in:
parent
05e1c35e88
commit
15798eaae7
3 changed files with 16 additions and 4 deletions
|
@ -12,6 +12,7 @@ export default class CanaryBuild extends BaseDistribution {
|
|||
}
|
||||
|
||||
protected findVersionInHoostedToolCacheDirectory(): string {
|
||||
let toolPath = '';
|
||||
const localVersionPaths = tc
|
||||
.findAllVersions('node', this.nodeInfo.arch)
|
||||
.filter(i => {
|
||||
|
@ -24,7 +25,9 @@ export default class CanaryBuild extends BaseDistribution {
|
|||
});
|
||||
|
||||
const localVersion = this.evaluateVersions(localVersionPaths);
|
||||
const toolPath = tc.find('node', localVersion, this.nodeInfo.arch);
|
||||
if (localVersion) {
|
||||
toolPath = tc.find('node', localVersion, this.nodeInfo.arch);
|
||||
}
|
||||
|
||||
return toolPath;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue