mirror of
https://github.com/actions/setup-node.git
synced 2025-07-23 15:08:24 +02:00
Expose the ability to select different architectures
This commit is contained in:
parent
e565252a9d
commit
3d0361d465
7 changed files with 84 additions and 35 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue