mirror of
https://github.com/actions/setup-node.git
synced 2025-01-22 16:29:43 +08:00
Update index.js
This commit is contained in:
parent
58a4f3c224
commit
0debf8f5a8
4
dist/setup/index.js
vendored
4
dist/setup/index.js
vendored
|
@ -93715,7 +93715,7 @@ class BasePrereleaseNodejs extends base_distribution_1.default {
|
||||||
let toolPath = '';
|
let toolPath = '';
|
||||||
let nodeInstallationPath = core.getInput('node-installation-path');
|
let nodeInstallationPath = core.getInput('node-installation-path');
|
||||||
if (os_1.default.platform() != 'win32') {
|
if (os_1.default.platform() != 'win32') {
|
||||||
nodeInstallationPath = nodeInstallationPath.replace(/\\?bin$/, '');
|
nodeInstallationPath = nodeInstallationPath.replace(/\\bin$/, '').replace(/\/bin$/, '');
|
||||||
}
|
}
|
||||||
const localVersionPaths = tc
|
const localVersionPaths = tc
|
||||||
.findAllVersions('node', this.nodeInfo.arch)
|
.findAllVersions('node', this.nodeInfo.arch)
|
||||||
|
@ -93996,7 +93996,7 @@ class BaseDistribution {
|
||||||
info = info || {}; // satisfy compiler, never null when reaches here
|
info = info || {}; // satisfy compiler, never null when reaches here
|
||||||
let nodeInstallationPath = core.getInput('node-installation-path');
|
let nodeInstallationPath = core.getInput('node-installation-path');
|
||||||
if (this.osPlat != 'win32') {
|
if (this.osPlat != 'win32') {
|
||||||
nodeInstallationPath = nodeInstallationPath.replace(/\\?bin$/, '');
|
nodeInstallationPath = nodeInstallationPath.replace(/\\bin$/, '').replace(/\/bin$/, '');
|
||||||
}
|
}
|
||||||
if (this.osPlat == 'win32') {
|
if (this.osPlat == 'win32') {
|
||||||
const extension = this.nodeInfo.arch === 'arm64' ? '.zip' : '.7z';
|
const extension = this.nodeInfo.arch === 'arm64' ? '.zip' : '.7z';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user