Expose the ability to select different architectures

This commit is contained in:
Tyler Ang-Wanek 2019-08-22 13:21:46 -07:00
parent e565252a9d
commit 3d0361d465
No known key found for this signature in database
GPG key ID: DED1387F8E0A5146
7 changed files with 84 additions and 35 deletions

View file

@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
const core = __importStar(require("@actions/core"));
const installer = __importStar(require("./installer"));
const auth = __importStar(require("./authutil"));
const os = __importStar(require("os"));
const path = __importStar(require("path"));
function run() {
return __awaiter(this, void 0, void 0, function* () {
@ -30,9 +31,10 @@ function run() {
if (!version) {
version = core.getInput('node-version');
}
const osArch = core.getInput('node-arch') || os.arch();
if (version) {
// TODO: installer doesn't support proxy
yield installer.getNode(version);
yield installer.getNode(version, osArch);
}
const registryUrl = core.getInput('registry-url');
const alwaysAuth = core.getInput('always-auth');