Add support for Node.js v22 Current
Description:
Please add support for Node.js v22 Current... https://github.com/nodejs/node/releases
Justification: Add testing on the latest version of Node.js.
Are you willing to submit a PR? No.
Seems like actions/setup-node Mac and Ubuntu work out-of-the-box but Windows has issues:
- nodejs/node#52682
- Win: https://community.chocolatey.org/packages/nodejs
Hello @cclauss Thank you for creating this feature request. We will investigate it and get back to you as soon as we have some feedback.
https://github.com/npm/cli/releases/tag/v10.7.0 seems to fix things!
# Temporary workaround for Node.js v22 on Windows
- if: matrix.node-version == '22' && runner.os == 'Windows'
shell: bash # Not pwsh!!!
run: |
npm --version # 10.5.1
npm install -g npm # >= https://github.com/npm/cli/releases/tag/v10.7.0
npm --version # 10.7.0
https://github.com/actions/node-versions/releases/tag/22.1.0-8926142033