minor fix

This commit is contained in:
Dmitry Shibanov 2022-12-13 11:25:04 +01:00
parent 2d741fbf57
commit 292688b127
3 changed files with 16 additions and 7 deletions

View file

@ -2,6 +2,7 @@ import * as core from '@actions/core';
import * as tc from '@actions/tool-cache';
import * as semver from 'semver';
import os from 'os';
import path from 'path';
import {INodeVersion} from '../../installer';
import BaseDistribution from '../base-distribution';
@ -131,6 +132,10 @@ export default class OfficialBuilds extends BaseDistribution {
toolPath = await this.downloadNodejs(toolName);
}
if (this.osPlat != 'win32') {
toolPath = path.join(toolPath, 'bin');
}
core.addPath(toolPath);
}