setup-node icon indicating copy to clipboard operation
setup-node copied to clipboard

Add support for Node.js v22 Current

Open cclauss opened this issue 1 year ago • 3 comments

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.

cclauss avatar Apr 24 '24 19:04 cclauss

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

cclauss avatar Apr 25 '24 14:04 cclauss

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.

HarithaVattikuti avatar Apr 25 '24 21:04 HarithaVattikuti

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

cclauss avatar May 01 '24 14:05 cclauss

https://github.com/actions/node-versions/releases/tag/22.1.0-8926142033

cclauss avatar May 02 '24 16:05 cclauss