diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4f9f7fa..7245337 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -120,8 +120,8 @@ jobs: - name: Check run: | node -v - node -e 'console.log(process.arch)' npm -v + if ((node -e 'console.log(process.arch)') -ne 'ia32') { exit 1 } # windows-nvmrc: # runs-on: windows-latest diff --git a/index.js b/index.js index 1a44ead..e1ef50f 100644 --- a/index.js +++ b/index.js @@ -26,7 +26,7 @@ async function resolveVersion(version, mirror) { let mirror = core.getInput("node-mirror") || "https://nodejs.org/dist/"; let version = await resolveVersion(core.getInput("node-version"), mirror); if (process.platform == "win32") { - let arch = core.getInput("node-arch") || null; + let arch = core.getInput("node-arch") || ""; runScript("powershell", ".\\install.ps1", version, mirror, arch); } else { runScript("bash", "install.sh", version, mirror);