mirror of
https://github.com/actions/setup-node.git
synced 2025-06-08 02:22:04 +08: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