You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support reading node version from engines.node field in package.json #38
We deploy to Vercel, which reads from engines.node (corepack support, which would use devEngines, isn't stable on Vercel), and we also use Renovate which doesn't support devEngines (renovatebot/renovate#38067). As a result it would be great if pnpm/setup could use engines.node if devEngines.runtime is not set.
I support this.
I'm trying to migrate away from actions/setup-node, which supports setting node-version-file to a package.json file like this:
- name: Set up Node.jsuses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0with:
node-version-file: package.jsoncache: pnpm
With a package.json file like this:
{
// ..."engines": {
"node": ">=24"
},
// ...
}
It then downloads and set's up Node.js v24.x.x.
I would love to see a similar feature in pnpm/setup in order to move away from a pnpm/action-setup + actions/setup-node combo.
Activity
jonasgeiler commentedon Aug 31, 2026
I support this.
I'm trying to migrate away from
actions/setup-node, which supports settingnode-version-fileto apackage.jsonfile like this:With a
package.jsonfile like this:{ // ... "engines": { "node": ">=24" }, // ... }It then downloads and set's up Node.js
v24.x.x.I would love to see a similar feature in
pnpm/setupin order to move away from apnpm/action-setup+actions/setup-nodecombo.Here is kinda how
actions/setup-nodedoes it:https://github.com/actions/setup-node/blob/94196ee1d15439c1b6651cd87ef14e88ec435966/src/distributions/base-distribution.ts#L65-L87
nikitaignatovich-innowise commentedon Sep 1, 2026
@jonasgeiler it seems like what using the
actions/setup-nodewithpnpm/setupright now is ovekilljonasgeiler commentedon Sep 1, 2026
Yeah? I'm not doing that. I am using
pnpm/action-setupwithactions/setup-nodebut I want to move towards only usingpnpm/setup.