@@ -12975,7 +12975,6 @@ const io = __importStar(__webpack_require__(1));
1297512975const tc = __importStar(__webpack_require__(533));
1297612976const path = __importStar(__webpack_require__(622));
1297712977const semver = __importStar(__webpack_require__(280));
12978- const fs = __webpack_require__(747);
1297912978function getNode(versionSpec, stable, token) {
1298012979 return __awaiter(this, void 0, void 0, function* () {
1298112980 let osPlat = os.platform();
@@ -13005,7 +13004,8 @@ function getNode(versionSpec, stable, token) {
1300513004 }
1300613005 catch (err) {
1300713006 if (err instanceof tc.HTTPError && err.httpStatusCode == 404) {
13008- return yield acquireNodeFromFallbackLocation(info.resolvedVersion);
13007+ yield acquireNodeFromFallbackLocation(info.resolvedVersion);
13008+ return;
1300913009 }
1301013010 throw err;
1301113011 }
@@ -13015,12 +13015,9 @@ function getNode(versionSpec, stable, token) {
1301513015 let extPath;
1301613016 if (osPlat == 'win32') {
1301713017 let _7zPath = path.join(__dirname, '..', 'externals', '7zr.exe');
13018- console.log(`downloadPath: ${downloadPath}`, `isFile: ${fs.statSync(downloadPath).isFile()}`);
13019- console.log(JSON.stringify(fs.statSync(downloadPath)));
1302013018 extPath = yield tc.extract7z(downloadPath, undefined, _7zPath);
1302113019 // 7z extracts to folder matching file name
1302213020 extPath = path.join(extPath, path.basename(info.fileName, '.7z'));
13023- console.log(`extPath: ${extPath}`, `isDirectory: ${fs.statSync(extPath).isDirectory()}`);
1302413021 }
1302513022 else {
1302613023 extPath = yield tc.extractTar(downloadPath, undefined, [
@@ -13187,6 +13184,7 @@ function acquireNodeFromFallbackLocation(version) {
1318713184 try {
1318813185 exeUrl = `https://nodejs.org/dist/v${version}/win-${osArch}/node.exe`;
1318913186 libUrl = `https://nodejs.org/dist/v${version}/win-${osArch}/node.lib`;
13187+ console.log(`Downloading only node binary from ${exeUrl}`);
1319013188 const exePath = yield tc.downloadTool(exeUrl);
1319113189 yield io.cp(exePath, path.join(tempDir, 'node.exe'));
1319213190 const libPath = yield tc.downloadTool(libUrl);
@@ -13205,7 +13203,9 @@ function acquireNodeFromFallbackLocation(version) {
1320513203 throw err;
1320613204 }
1320713205 }
13208- return yield tc.cacheDir(tempDir, 'node', version);
13206+ let toolPath = yield tc.cacheDir(tempDir, 'node', version);
13207+ core.addPath(toolPath);
13208+ return toolPath;
1320913209 });
1321013210}
1321113211// os.arch does not always match the relative download url, e.g.
0 commit comments