From bf9e4b96b9887542b7d93b2c4760d88df9a3130d Mon Sep 17 00:00:00 2001 From: Timo Sand Date: Mon, 1 Jun 2026 22:13:55 +0300 Subject: [PATCH] `npm run build` Signed-off-by: Timo Sand --- dist/setup/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 8a86b779..81cafc3e 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -79822,7 +79822,9 @@ class OfficialBuilds extends base_distribution_1.default { const versionInfo = await this.getInfoFromManifest(this.nodeInfo.versionSpec, this.nodeInfo.stable, osArch, manifest); if (versionInfo) { core.info(`Acquiring ${versionInfo.resolvedVersion} - ${versionInfo.arch} from ${versionInfo.downloadUrl}`); - downloadPath = await tc.downloadTool(versionInfo.downloadUrl, undefined, this.nodeInfo.mirror ? this.nodeInfo.mirrorToken : this.nodeInfo.auth); + downloadPath = await tc.downloadTool(versionInfo.downloadUrl, undefined, this.nodeInfo.mirror && this.nodeInfo.mirrorToken + ? this.nodeInfo.mirrorToken + : this.nodeInfo.auth); if (downloadPath) { toolPath = await this.extractArchive(downloadPath, versionInfo, false); } @@ -79893,7 +79895,9 @@ class OfficialBuilds extends base_distribution_1.default { } getManifest() { core.debug('Getting manifest from actions/node-versions@main'); - return tc.getManifestFromRepo('actions', 'node-versions', this.nodeInfo.mirror ? this.nodeInfo.mirrorToken : this.nodeInfo.auth, 'main'); + return tc.getManifestFromRepo('actions', 'node-versions', this.nodeInfo.mirror && this.nodeInfo.mirrorToken + ? this.nodeInfo.mirrorToken + : this.nodeInfo.auth, 'main'); } resolveLtsAliasFromManifest(versionSpec, stable, manifest) { const alias = versionSpec.split('lts/')[1]?.toLowerCase();