mirror of
https://github.com/actions/setup-node
synced 2025-05-05 14:43:54 +00:00
version option before preferredNodeVersion
This commit is contained in:
parent
ae4555eab1
commit
4f9f7c854d
@ -14,10 +14,10 @@ export async function run() {
|
|||||||
//
|
//
|
||||||
let version = core.getInput('node-version');
|
let version = core.getInput('node-version');
|
||||||
if (!version) {
|
if (!version) {
|
||||||
version = (await preferredNodeVersion()).version;
|
version = core.getInput('version');
|
||||||
}
|
}
|
||||||
if (!version) {
|
if (!version) {
|
||||||
version = core.getInput('version');
|
version = (await preferredNodeVersion()).version;
|
||||||
}
|
}
|
||||||
|
|
||||||
let arch = core.getInput('architecture');
|
let arch = core.getInput('architecture');
|
||||||
|
Loading…
Reference in New Issue
Block a user