Skip to content

suggestion: use node-version-file: ".nvmrc" for GH Actions #42412

@coliff

Description

@coliff

Currently there are 5x GitHub Actions workflows which specify using NODE: 24.

Instead it could reference the .nvmrc file in the project root - https://github.com/actions/setup-node#usage

e.g.

      - name: Setup Node.js
        uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
        with:
          node-version-file: ".nvmrc"
          cache: npm

Then, when ready to switch to Node 26 it only needs to be updated in a single place.

Happy to make a PR if you'd like.

UPDATE: the .nvmrc file was added a few months ago.. I missed that, I've updated the title/description above :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions