mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 09:21:00 +00:00
version option before preferredNodeVersion
This commit is contained in:
parent
ae4555eab1
commit
4f9f7c854d
1 changed files with 2 additions and 2 deletions
|
@ -14,10 +14,10 @@ export async function run() {
|
|||
//
|
||||
let version = core.getInput('node-version');
|
||||
if (!version) {
|
||||
version = (await preferredNodeVersion()).version;
|
||||
version = core.getInput('version');
|
||||
}
|
||||
if (!version) {
|
||||
version = core.getInput('version');
|
||||
version = (await preferredNodeVersion()).version;
|
||||
}
|
||||
|
||||
let arch = core.getInput('architecture');
|
||||
|
|
Loading…
Add table
Reference in a new issue