GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Support `devEngines` field in `package.json` · Issue #1255 · actions/setup-node

Support devEngines field in package.json #1255

New issue
Copy link
New issue
Copy link
Closed
#1283
Closed
Support devEngines field in package.json#1255
#1283
Copy link
Labels
feature requestNew feature or request to improve the current logic

Description

@zanminkian
zanminkian
opened on Mar 21, 2025
Issue body actions

Description:
devEngines field is now supported by npm and corepack.

If user set node-version-file: package.json in yaml, setup-node action should consult both engines and devEngines fields, while currently only engines works.

Justification:
In monorepo, the root package.json usually have no engines field. Moreover, the engines is for users who install the npm package, while the devEngines field is for who developers who develop the npm package. Obviously, devEngines is more suitable for setup-node.

Are you willing to submit a PR?
Yes

Reacted by Juan Sanchez, Ferdinand Thiessen, Marian Klühspies, Tim Chen, Sebastian Davids, Grigory, sasaplus1, Bo Lingen, Yuhei Yasuda, Taiga KATARAO and 10 more
Reacted by Nozomi Ishii

Activity

  1. zanminkian
    added
    feature requestNew feature or request to improve the current logic
    needs triage
    on Mar 21, 2025
  2. suyashgaonkar
    removed
    needs triage
    on Mar 24, 2025
  3. suyashgaonkar commented on Mar 24, 2025

    @suyashgaonkar
    suyashgaonkar
    on Mar 24, 2025
    Contributor
    More actions

    Hi @zanminkian , Thank you for creating this feature request. We will investigate it and provide feedback as soon as we have some updates.

    Reacted by Oersta1rdt
  4. mklueh commented on Apr 13, 2025

    @mklueh
    mklueh
    on Apr 13, 2025
    More actions

    And if anyone is working on this, maybe you could also consider factoring in the volta node field?

    Image

    Then you could run volta pin [email protected] which would fetch and install node, set the node version in package.json volta.node and that's all you have to do

    https://docs.volta.sh/reference/pin

    But maybe it would be better to let volta handle the devEngines update instead of making this action volta-aware

    Reacted by fregante, Jesús Leganés-Combarro, zanminkian, Noah S-C, Ryan Suhartanto and Julien Roncaglia
  5. susnux commented on Apr 20, 2025

    @susnux
    susnux
    on Apr 20, 2025
    Contributor
    More actions

    @mklueh but the volta field is already supported? #921

  6. zanminkian commented on Jul 30, 2025

    @zanminkian
    zanminkian
    on Jul 30, 2025
    Author
    More actions

    @mklueh volta is not the standard, but devEngines is the standard which is supported by npm, pnpm, corepack ...
    BTW I don't consider volta until it stablely supports pnpm.

  7. achou11
    added 2 commits that reference this issue on Oct 9, 2025

    chore: specify dev engines field in package.json (#321)

    f179e30

    chore: specify dev engines field in package.json (#321)

    ea790e4
  8. zanminkian commented on Dec 19, 2025

    @zanminkian
    zanminkian
    on Dec 19, 2025
    Author
    More actions

    Here is a workaround to support devEngines:

          - uses: actions/checkout@v4
          # TODO: Remove this step when https://github.com/actions/setup-node/pull/1283 is merged
          - name: Get Node.js version
            id: get-node-version
            run: |
              node_version=$(jq -r '.devEngines.runtime.version // empty' package.json)
              if [ -z "$node_version" ]; then
                echo "Error: No Node.js version specified in devEngines.runtime.version"
                exit 1
              fi
              echo "node-version=$node_version" >> $GITHUB_OUTPUT
          - uses: actions/setup-node@v4
            with:
              node-version: ${{ steps.get-node-version.outputs.node-version }}
    Reacted by Kutsan Kaplan, Julien Roncaglia, Peter Abrahamsen and Minsu Lee
  9. v-aparnajyothi-y commented on Jan 28, 2026

    @v-aparnajyothi-y
    v-aparnajyothi-y
    on Jan 28, 2026
    Contributor
    More actions

    Hello Everyone, Thanks for the detailed feedback and examples shared here. Based on the discussion and internal review, we agree this would be a useful enhancement with minimal impact on existing workflows.

    We’re planning to extend node-version-file: package.json to also consider devEngines, with the following precedence:

    volta.node → devEngines.runtime → engines.node

    This keeps the current behavior unchanged unless devEngines (or volta) is explicitly defined, while better supporting developer-focused and monorepo setups. We’ll ensure the precedence is clearly documented and will share updates as the implementation progresses.

    Please feel free to reach if you have any questions or concerns regarding this change.

    Reacted by Kutsan Kaplan and Takuya Fukuju
    Reacted by Eli, Kutsan Kaplan, Peter Abrahamsen, Callum Watkins and Nozomi Ishii
  10. v-HarithaVattikuti
    closed this as completedin #1283on Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or request to improve the current logic

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.