Skip to content

Node.js

How json2vars-setter handles Node.js, and how the example workflow provisions it.

json2vars-setter integration

Item Value
Matrix JSON key versions.nodejs
Action output versions_nodejs
Dynamic-update strategy input nodejs-strategy (stable / latest / both)
Version source see Version Sources

Supported runners

The example matrix runs on Ubuntu / Windows / macOS:

ubuntu-latest, windows-latest, macos-latest

Any GitHub-hosted runner the setup action supports also works - the OS list is just the os array in your matrix JSON.

Supported versions

Example matrix (what the example workflow runs):

{
  "versions": {
    "nodejs": [
      "18",
      "20",
      "22",
      "23"
    ]
  }
}

Latest values tracked by the dynamic-update tooling (auto-refreshed from the release APIs into the version cache):

Field Version
stable 24.18.0
latest 26.3.1

Cache last updated: 2026-06-24T12:28:39.643464.

Setup action (example workflow)

nodejs_test.yml provisions Node.js with the matrix value json2vars-setter produced:

1
2
3
4
5
6
- name: Set up Node.js
  uses: actions/setup-node@v7.0.0
  with:
    node-version: ${{ matrix.node-version }}
    cache: 'npm'
    cache-dependency-path: './examples/nodejs/package-lock.json'

References