mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-19 21:04:45 +00:00
Use node-version instead of version (#28)
* Use node-version instead of version * Add deprecation date
This commit is contained in:
parent
d963e800e3
commit
dd2e8a486f
4 changed files with 18 additions and 9 deletions
|
@ -9,7 +9,10 @@ async 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
|
||||
await installer.getNode(version);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue