mirror of
https://github.com/actions/setup-node.git
synced 2025-07-23 23:18:25 +02:00
minor fix
This commit is contained in:
parent
2d741fbf57
commit
292688b127
3 changed files with 16 additions and 7 deletions
|
@ -36,6 +36,10 @@ export default abstract class BaseDistribution {
|
|||
toolPath = await this.downloadNodejs(toolName);
|
||||
}
|
||||
|
||||
if (this.osPlat != 'win32') {
|
||||
toolPath = path.join(toolPath, 'bin');
|
||||
}
|
||||
|
||||
core.addPath(toolPath);
|
||||
}
|
||||
|
||||
|
@ -82,10 +86,6 @@ export default abstract class BaseDistribution {
|
|||
let toolPath = await this.extractArchive(downloadPath, info);
|
||||
core.info('Done');
|
||||
|
||||
if (osPlat != 'win32') {
|
||||
toolPath = path.join(toolPath, 'bin');
|
||||
}
|
||||
|
||||
return toolPath;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue