Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lts version #17

Merged
merged 1 commit into from
Jul 29, 2019
Merged

Add lts version #17

merged 1 commit into from
Jul 29, 2019

Conversation

damccorm
Copy link
Contributor

No description provided.

@damccorm damccorm requested a review from stephenmichaelf July 23, 2019 15:52
@@ -81,6 +85,18 @@ export async function getNode(versionSpec: string) {
core.addPath(toolPath);
}

// Schedule based off https://nodejs.org/en/about/releases/. TODO: would be nice to automate this so we don't drift

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the plan for this? Do we know how long of a buffer we have until the next LTS?

We should have an issue to track this and remove TODO from the code.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added an issue to add support for this in the node dist - nodejs/nodejs.org#2351

They seemed open to it, so I think that would be my ideal option 1. If that doesn't work, we could try to parse it somewhere, or just manually update as appropriate.

@damccorm damccorm merged commit 419dce7 into master Jul 29, 2019
@damccorm damccorm deleted the lts branch July 29, 2019 14:46
@bryanmacfarlane
Copy link
Member

bryanmacfarlane commented Jul 29, 2019

Is this a pattern we want to push across the boardr? Absense is LTS since that's what's on hosted so this change seems odd to me.

return '12.x';
}
else {
return '14.x';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There has to be a better way to do this by querying there releases and iterating to find latest LTS.

This seems like a maintenance problem.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's not right now as best I can tell, I filed an issue and the node people didn't have any better suggestions, I think that should change in the future.

damccorm pushed a commit that referenced this pull request Jul 30, 2019
@damccorm damccorm mentioned this pull request Jul 30, 2019
damccorm pushed a commit that referenced this pull request Jul 30, 2019
krzyk pushed a commit to krzyk/setup-node that referenced this pull request Apr 11, 2023
fix bug where name wasn't being validated properly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants