mirror of
https://codeberg.org/actions/setup-node.git
synced 2023-07-31 13:16:24 +00:00
Add brief comment about supported formats
This commit is contained in:
parent
fa68745dc0
commit
c8c6442c74
|
@ -192,6 +192,7 @@ function findLtsVersionFromManifest(
|
|||
|
||||
core.debug(`LTS alias '${alias}' for Node version '${versionSpec}'`);
|
||||
|
||||
// Supported formats are `lts/<alias>` and `lts/*`. Where asterisk means highest possible LTS.
|
||||
const release = alias === '*'
|
||||
? candidates.find(x => !!x.lts && x.stable === stable)
|
||||
: candidates.find(x => x.lts?.toLowerCase() === alias && x.stable === stable);
|
||||
|
|
Loading…
Reference in a new issue