mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-25 07:04:45 +00:00
feat: add support for lts alias
This commit is contained in:
parent
39370e3970
commit
9656da02e3
2 changed files with 4 additions and 2 deletions
|
@ -195,6 +195,8 @@ export default class OfficialBuilds extends BaseDistribution {
|
|||
stable: boolean,
|
||||
manifest: INodeRelease[]
|
||||
): string {
|
||||
if ( versionSpec === "lts" ) versionSpec = "lts/*";
|
||||
|
||||
const alias = versionSpec.split('lts/')[1]?.toLowerCase();
|
||||
|
||||
if (!alias) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue