Skip to content

Commit f27ebaf

Browse files
aminyaimplausible
andcommitted
feat: add arch to getNode
Co-Authored-By: Tyler Ang-Wanek <tylerw@axosoft.com>
1 parent 42d59fb commit f27ebaf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/installer.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ export async function getNode(
2727
versionSpec: string,
2828
stable: boolean,
2929
checkLatest: boolean,
30-
auth: string | undefined
30+
auth: string | undefined,
31+
arch: string = os.arch()
3132
) {
3233
let osPlat: string = os.platform();
33-
let osArch: string = translateArchToDistUrl(os.arch());
34+
let osArch: string = translateArchToDistUrl(arch);
3435

3536
if (checkLatest) {
3637
core.info('Attempt to resolve the latest version from manifest...');

0 commit comments

Comments
 (0)