Skip to content

Commit f1a144b

Browse files
committed
npm run build
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
1 parent 3422429 commit f1a144b

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

dist/setup/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79820,7 +79820,9 @@ class OfficialBuilds extends base_distribution_1.default {
7982079820
const versionInfo = await this.getInfoFromManifest(this.nodeInfo.versionSpec, this.nodeInfo.stable, osArch, manifest);
7982179821
if (versionInfo) {
7982279822
core.info(`Acquiring ${versionInfo.resolvedVersion} - ${versionInfo.arch} from ${versionInfo.downloadUrl}`);
79823-
downloadPath = await tc.downloadTool(versionInfo.downloadUrl, undefined, this.nodeInfo.mirror ? this.nodeInfo.mirrorToken : this.nodeInfo.auth);
79823+
downloadPath = await tc.downloadTool(versionInfo.downloadUrl, undefined, this.nodeInfo.mirror && this.nodeInfo.mirrorToken
79824+
? this.nodeInfo.mirrorToken
79825+
: this.nodeInfo.auth);
7982479826
if (downloadPath) {
7982579827
toolPath = await this.extractArchive(downloadPath, versionInfo, false);
7982679828
}
@@ -79891,7 +79893,9 @@ class OfficialBuilds extends base_distribution_1.default {
7989179893
}
7989279894
getManifest() {
7989379895
core.debug('Getting manifest from actions/node-versions@main');
79894-
return tc.getManifestFromRepo('actions', 'node-versions', this.nodeInfo.mirror ? this.nodeInfo.mirrorToken : this.nodeInfo.auth, 'main');
79896+
return tc.getManifestFromRepo('actions', 'node-versions', this.nodeInfo.mirror && this.nodeInfo.mirrorToken
79897+
? this.nodeInfo.mirrorToken
79898+
: this.nodeInfo.auth, 'main');
7989579899
}
7989679900
resolveLtsAliasFromManifest(versionSpec, stable, manifest) {
7989779901
const alias = versionSpec.split('lts/')[1]?.toLowerCase();

0 commit comments

Comments
 (0)