@@ -15199,16 +15199,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
1519915199 result["default"] = mod;
1520015200 return result;
1520115201};
15202- var __importDefault = (this && this.__importDefault) || function (mod) {
15203- return (mod && mod.__esModule) ? mod : { "default": mod };
15204- };
1520515202Object.defineProperty(exports, "__esModule", { value: true });
1520615203const core = __importStar(__webpack_require__(470));
15207- const io = __importStar(__webpack_require__(1 ));
15204+ const exec = __importStar(__webpack_require__(986 ));
1520815205const installer = __importStar(__webpack_require__(749));
1520915206const auth = __importStar(__webpack_require__(202));
1521015207const path = __importStar(__webpack_require__(622));
15211- const child_process_1 = __importDefault(__webpack_require__(129));
1521215208function run() {
1521315209 return __awaiter(this, void 0, void 0, function* () {
1521415210 try {
@@ -15224,15 +15220,11 @@ function run() {
1522415220 yield installer.getNode(version);
1522515221 }
1522615222 // Output version of node and npm that are being used
15227- const nodePath = yield io.which('node');
15228- const nodeVersion = child_process_1.default.execSync(`"${nodePath}" --version`);
15229- console.log(`Node Version: ${nodeVersion}`);
15230- const npmPath = yield io.which('npm');
15231- // Older versions of Node don't include npm
15232- if (npmPath) {
15233- const npmVersion = child_process_1.default.execSync(`"${npmPath}" --version`);
15234- console.log(`npm Version: ${npmVersion}`);
15235- }
15223+ const nodeVersion = exec.exec(`"$ --version`);
15224+ // Older versions of Node don't include npm, so don't let this call fail
15225+ const npmVersion = exec.exec(`npm --version`, undefined, {
15226+ ignoreReturnCode: true
15227+ });
1523615228 const registryUrl = core.getInput('registry-url');
1523715229 const alwaysAuth = core.getInput('always-auth');
1523815230 if (registryUrl) {
0 commit comments