Repository navigation
Supporting Node.js 14 and 16 LTS as the runtime of JavaScript action #772
Description
Activity
Looks like this is not easy 😭
runner/src/Runner.Worker/ActionManifestManager.cs
Lines 454 to 471 in 89a13db
else if (string.Equals(usingToken.Value, "node12", StringComparison.OrdinalIgnoreCase)) { if (string.IsNullOrEmpty(mainToken?.Value)) { throw new ArgumentNullException($"You are using a JavaScript Action but there is not an entry JavaScript file provided in {fileRelativePath}."); } else { return new NodeJSActionExecutionData() { Script = mainToken.Value, Pre = preToken?.Value, InitCondition = preIfToken?.Value ?? "always()", Post = postToken?.Value, CleanupCondition = postIfToken?.Value ?? "always()" }; } } Reacted by Shohei UedaIs it done via actions/runner-images#1953 ?
No. This is a problem of the actions/runner.
peaceiris/actions-gh-pages#539
https://github.com/peaceiris/actions-gh-pages/pull/539/checks?check_run_id=1437553870#step:19:20
Error: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter ''using: node14' is not supported, use 'docker' or 'node12' instead.')We need:
- compile alpine node14
- update the ./external.sh script to download the
node14 - update C# code and yaml schema to support
node14 - update documentation
Reacted by Gary Crye, William Yardley, Oscar Dominguez, Shohei Ueda, Steven Ding and Hunter HolderReacted by Thew Dhanat, Oscar Dominguez and Shohei Ueda- added a commit that references this issue
on Jan 5, 2021 - added a commit that references this issue
on Mar 13, 2021 Hello,
Is there any update on this or timeline of when to expect this feature?Thank you,
Milan Zítka@TingluoHuang I started working on this but I don't have any significant experience with C# so any help or direction would be much appreciated.
Reacted by mktcode, Leonhard Melzer, Oscar Dominguez, Dennis Ameling and Edward GaróShould we just wait for node.js 16 to become LTS and then directly goes to node 16? I don't see too many benefits that go to node 14.
Reacted by mktcode, Bryan MacFarlane, Selwyn, pyrbin, Edward Thomson, Seth Davenport and Sergey VilgelmReacted by Danny Paul, Adam, Sean Hill and Shan"Active LTS Start: 2021-10-26"
https://nodejs.org/en/about/releases/not that far away 👍🏻
... we could even start much sooner with
using: node14support in preview to find and flush out any potential issues. no need to wait till October ... we'll just have to turn the crank it least a couple of times. But I do like going straight to 16.Reacted by hehe and Ryan NettWhat would be the benefit of supporting node 14? Any features that would be unlocked by using it?
among other things: top-level await, which is great for CLI apps, such as actions written in JS
Reacted by rethab, Brian Surowiec, mktcode, Gary Crye, Adam Altman and Ian VanSchootenReacted by Michael Kriese, mktcode and Ron Viscuso- Reacted by rethab, Ian Walter and Danny PaulReacted by Michael Kriese, Don Brinn, Danny Paul, Ron Viscuso and martiben
16 remaining items
Any update on this? I have a few projects I'm looking to update to version 14
The pull-request #1439 will close this and be released in version 2.285.0. (Note: there is no option for
node14)Reacted by Chris HainesReacted by Oli Evans, Chris Araman and Kengo TODA- added a commit that references this issue
on Jan 3, 2022 - added a commit that references this issue
on May 10, 2022 - added 2 commits that reference this issue
on Jul 2, 2022 - added a commit that references this issue
on Jul 4, 2022 - added 3 commits that reference this issue
on Nov 28, 2022
Describe the enhancement
Node.js v14.15.0 has been released and the 14.x release line now moves into Active LTS. Can the GitHub Actions runner support it as the runtime of a JavaScript (TypeScript) action? Is there a roadmap for this?
Code Snippet
Today, we can set
node12toruns.using.Can we set
node14(ornode16) as follows?Additional information
https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-javascript-actions
We also need to update the documentation when
node14is available.