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

Upgrade to Node.js 22 #92

Open
gskierk opened this issue Dec 29, 2024 · 1 comment
Open

Upgrade to Node.js 22 #92

gskierk opened this issue Dec 29, 2024 · 1 comment

Comments

@gskierk
Copy link

gskierk commented Dec 29, 2024

Node.js 22 is LTS. Should we update .yml files to use 22 instead of 20?

@edif2008
Copy link
Member

Hey @gskierk! 👋🏻

Thank you for asking this question and I appreciate your initiative to keep our integrations up-to-date.
It would be useful to upgrade the action to use Node 22 and we even encourage external contribution on this (even you).

The goal we have when making such upgrades is to avoid making lots of major releases. Currently the GitHub guidelines don't seem to suggest switching to Node 22 just yet, therefore I don't think it is the right time to upgrade now. Once they've updated their guidelines to comfortably switch to that version, then you're more than welcome to bring this change to this action as well.

Here are a couple of additional things to consider when upgrading the Node version:

  • Upgrading the Node version in a GitHub action usually means making a new major release. That is done to account for any potential breaking changes that can come from upgrading the Node version. This happens even though the action itself doesn’t have breaking changes.
  • Javascript-written GitHub Actions currently default to Node 20. It's not mentioned that Node 22 is fully supported yet. When they will upgrade to defaulting to Node 22, then it's worth making that effort.
  • The active support for Node.js 20 ended 2 months ago, but it still receives security patches for the next 1 year and 4 months.
  • There’s an effort made by the community to rewrite the GitHub Action into a pure Javascript action which leverages the SDKs. We want to make this backwards-compatible, and updating the Node version at this time would add extra complications.

Let me know if you have any further questions about this. 😄

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

No branches or pull requests

2 participants