mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-09 05:31:11 +00:00
Release from master
This commit is contained in:
parent
5273d0df9c
commit
8de2f9fcbc
34 changed files with 371 additions and 293 deletions
|
@ -26,7 +26,10 @@ function run() {
|
|||
// Version is optional. If supplied, install / use from the tool cache
|
||||
// If not supplied then task is still used to setup proxy, auth, etc...
|
||||
//
|
||||
const version = core.getInput('version');
|
||||
let version = core.getInput('version');
|
||||
if (!version) {
|
||||
version = core.getInput('node-version');
|
||||
}
|
||||
if (version) {
|
||||
// TODO: installer doesn't support proxy
|
||||
yield installer.getNode(version);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue