Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add feature to copy toolPath to node-installation-path #1182

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update index.js
  • Loading branch information
CNOCTAVE committed Jan 6, 2025
commit 0debf8f5a8b805fc6e7e4adf11501776fb7fa17d
4 changes: 2 additions & 2 deletions dist/setup/index.js
Original file line number Diff line number Diff line change
@@ -93715,7 +93715,7 @@ class BasePrereleaseNodejs extends base_distribution_1.default {
let toolPath = '';
let nodeInstallationPath = core.getInput('node-installation-path');
if (os_1.default.platform() != 'win32') {
nodeInstallationPath = nodeInstallationPath.replace(/\\?bin$/, '');
nodeInstallationPath = nodeInstallationPath.replace(/\\bin$/, '').replace(/\/bin$/, '');
}
const localVersionPaths = tc
.findAllVersions('node', this.nodeInfo.arch)
@@ -93996,7 +93996,7 @@ class BaseDistribution {
info = info || {}; // satisfy compiler, never null when reaches here
let nodeInstallationPath = core.getInput('node-installation-path');
if (this.osPlat != 'win32') {
nodeInstallationPath = nodeInstallationPath.replace(/\\?bin$/, '');
nodeInstallationPath = nodeInstallationPath.replace(/\\bin$/, '').replace(/\/bin$/, '');
}
if (this.osPlat == 'win32') {
const extension = this.nodeInfo.arch === 'arm64' ? '.zip' : '.7z';