Skip to content

Support node22 in runs.using for JavaScript actions #3600

Closed

Description

@sergei-startsev

Describe the bug

Specifying node22 as the runtime for JavaScript actions results in System.ArgumentOutOfRangeException error.

Node.js v22 transitioned into LTS On October 29, 2024

To Reproduce

runs:
  using: 'node22'
  main: 'main.js'

Expected behavior

Runner Version and Platform

  • Current runner version: 2.321.0
  • Operating System: Ubuntu 24.04.1 LTS

What's not working?

Error: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter ''using: node22' is not supported, use 'docker', 'node12', 'node16' or 'node20' instead.')
   at GitHub.Runner.Worker.ActionManifestManager.ConvertRuns(IExecutionContext executionContext, TemplateContext templateContext, TemplateToken inputsToken, String fileRelativePath, MappingToken outputs)
   at GitHub.Runner.Worker.ActionManifestManager.Load(IExecutionContext executionContext, String manifestFile)

Activity

  1. dipakparmar commented on Dec 5, 2024

    @dipakparmar

    +1 for this.

  2. iamstarkov commented on Dec 22, 2024

    @iamstarkov

    this would be lovely because node22 had been LTS for some time now

  3. albertodiazdorado commented on Feb 4, 2025

    @albertodiazdorado

    +1

  4. runspired commented on Feb 8, 2025

    @runspired

    seems like no one can use any of the great new node features in any actions until this is fixed as repo code run using an action is constrained to <= node 20 😭

  5. added a commit that references this issue on Feb 24, 2025
  6. MikeMcC399 commented on Mar 12, 2025

    @MikeMcC399
  7. MikeMcC399 commented on Mar 25, 2025

    @MikeMcC399

    @nebuk89

    In https://github.com/actions/runner/discussions/2704#discussioncomment-12016947 you wrote

    Sorry for the slowness on what comes next after node20! I was out for a few months but now I am back I will pick up with the team and start the annual wheel turn of moving up our node versions 🗡

    Do you (or anybody else) have any news for us about your concrete plans and timelines?

  8. garysassano commented on Jun 2, 2025

    @garysassano

    In about 5 months, Node.js 24 will become the Active LTS version. Given the current pace, it seems unlikely this will be addressed before then. At that point, it might make more sense to update directly to Node.js 24 instead.

  9. MikeMcC399 commented on Jun 2, 2025

    @MikeMcC399
  10. 8 remaining items

  11. MikeMcC399 commented on Aug 13, 2025

    @MikeMcC399

    @salmanmkc

    Thanks for the "big picture" of all the work you're doing!

  12. jackylamhk commented on Aug 13, 2025

    @jackylamhk

    @salmanmkc Thanks for the update! Are there plans to make Node 22 available or will it be skipped?

  13. salmanmkc commented on Aug 13, 2025

    @salmanmkc
    Contributor

    @salmanmkc Thanks for the update! Are there plans to make Node 22 available or will it be skipped?

    No worries! Will be skipped

  14. CatsMiaow commented on Sep 22, 2025

    @CatsMiaow

    https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

    As a result we have started the deprecation process of Node20 for GitHub Actions. We plan to migrate all actions to run on Node24 in the fall of 2025.
    Beginning on March 4th, 2026, runners will begin using Node24 by default.

    Node.js v24 Active LTS Start 2025-10-28

  15. salmanmkc commented on Sep 22, 2025

    @salmanmkc
    Contributor

    Yeah that's the blog post, node 24 is supported as of v2.327.1 however, using v2.328.0 will allow you to start testing with environment variables as outlined in the blog post.

  16. MikeMcC399 commented on Oct 1, 2025

    @MikeMcC399

    Will be skipped

    and https://docs.github.com/en/actions/reference/workflows-and-actions/metadata-syntax#runs-for-javascript-actions already documents

    Use node20 for Node.js v20.
    Use node24 for Node.js v24.

    with node22 already officially skipped.

  17. iamstarkov commented on Oct 27, 2025

    @iamstarkov

    @salmanmkc I've asked it somewhere else, but I'll repeat it here for exposure.

    Do you plan to skip nodejs 26?

  18. MikeMcC399 commented on Dec 4, 2025

    @MikeMcC399

    @salmanmkc

    Do you have any overview of which GitHub JavaScript actions still need to be migrated to node24?

    The announcement Deprecation of Node 20 on GitHub Actions runners said

    We plan to migrate all actions to run on Node24 in the fall of 2025.

    Going by that, I'd expect the migration to be complete or almost complete by now, however there are actions like https://github.com/actions/upload-artifact that are still on node20.

    Could you share any new plans for the remainder of the migrations?

  19. ChristopherHX commented on Dec 4, 2025

    @ChristopherHX
    Contributor

    Trivia https://github.com/actions/upload-artifact/releases/tag/v5.0.0 claims to contain the node24 update as breaking change, but the PR to bump to node 24 was never merged and all CI checks from 3 month ago are all red 🤣.

    Could really got marked internally as done.

  20. salmanmkc commented on Dec 12, 2025

    @salmanmkc
    Contributor

    Download artifact, upload artifact and cache are all on node 24 now.

    There are a few actions that my PRs haven't all been reviewed or I need to chase/revisit, however the main actions that we provide are all upgraded to node 24 now.

  21. salmanmkc commented on Dec 12, 2025

    @salmanmkc
    Contributor

    Trivia https://github.com/actions/upload-artifact/releases/tag/v5.0.0 claims to contain the node24 update as breaking change, but the PR to bump to node 24 was never merged and all CI checks from 3 month ago are all red 🤣.

    Could really got marked internally as done.

    All the CI checks were red because I was referencing a a local package similar to how you do npm link, that's done for testing, once that is done I switched it over to published packages and it went green.

    As per v5, a release was done by the team as they were shipping some other changes and that included the toolkit changes which were done for node 24 support.

  22. salmanmkc commented on Dec 12, 2025

    @salmanmkc
    Contributor

    Closing this as we have node 24 support now, see this post for more details https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

  23. self-assigned this
    on Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions