Visitar URL original
GitHub - eran132/setup-node-devengines-repro: Minimal repro for actions/setup-node#1553 (EBADDEVENGINES from npm config get cache) · GitHub
Skip to content

About

Minimal repro for actions/setup-node#1553 (EBADDEVENGINES from npm config get cache)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

setup-node devEngines repro

Minimal reproduction for actions/setup-node#1553: with caching enabled, setup-node runs npm config get cache in the workspace root. npm aborts that command with EBADDEVENGINES when the root package.json declares a devEngines.packageManager that the installed npm doesn't satisfy, so setup-node fails before any later step can install the required package manager.

Scenarios

Each workflow copies one scenario to the workspace root, sets engines.node to the matrix Node major, and runs setup-node with cache: npm.

Scenario Root package.json node-version-file cache-dependency-path
single-npm devEngines npm ^11.10.0 package.json package-lock.json
monorepo-pnpm-root devEngines pnpm ^10.0.0 app/package.json (plain npm project) app/package-lock.json
npm12-required devEngines npm >=12.2.2 (onFail: error) package.json package-lock.json
plain no devEngines (regression control) package.json package-lock.json

Workflows

  • repro.yml (manual): the original reproduction against actions/setup-node@v7.0.0 on Node 22 and 24, including a check of npm config get cache --force.
  • fix.yml: before/after. Every scenario runs on Node 22, 24 and 26 with upstream actions/setup-node@v7.1.0 and with the proposed fix (eran132/setup-node@fix/npm-cache-devengines), 10 attempts each. Jobs using the fix have no continue-on-error, so the post-job cache save has to pass as well.

See the Actions tab for results.

About

Minimal repro for actions/setup-node#1553 (EBADDEVENGINES from npm config get cache)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors