Skip to content

ci: pin slim-publish npm to v11 to fix EBADENGINE#698

Merged
fred-venus merged 1 commit into
developfrom
fix/slim-publish-npm-engine
Jul 14, 2026
Merged

ci: pin slim-publish npm to v11 to fix EBADENGINE#698
fred-venus merged 1 commit into
developfrom
fix/slim-publish-npm-engine

Conversation

@fred-venus

Copy link
Copy Markdown
Contributor

Problem

The release job's Publish slim package step fails with:

```
npm error code EBADENGINE
npm error notsup Required: {"node":"^22.22.2 || ^24.15.0 || >=26.0.0"}
npm error notsup Actual: {"npm":"10.9.2","node":"v22.14.0"}
```

Failing run: https://github.com/VenusProtocol/venus-protocol/actions/runs/29325391520/job/87060361905

The main package publishes fine (10.3.0-dev.2 to develop); only the slim step fails. It runs npm install -g npm@latest, which now resolves to [email protected]. npm 12 requires node ^22.22.2 || ^24.15.0 || >=26.0.0, but CI provides node v22.14.0, so the global install aborts with EBADENGINE and the step exits 1.

Fix

Pin the global npm install to the v11 line (npm@^11.5.1), matching the step's own stated intent ("Ensure npm 11.5.1 or later"). This keeps it compatible with the CI node version and avoids being dragged onto npm 12 by @latest.

🤖 Generated with Claude Code

npm@latest now resolves to [email protected], which requires node
^22.22.2 || ^24.15.0 || >=26.0.0. CI runs node v22.14.0, so the
global install failed with EBADENGINE and the slim publish step
exited 1. Pin to npm@^11.5.1 (matching the step's stated intent)
so it stays compatible with the CI node version.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@Debugger022
Debugger022 self-requested a review July 14, 2026 12:18
@fred-venus
fred-venus merged commit 0d21b55 into develop Jul 14, 2026
5 checks passed
@github-actions

Copy link
Copy Markdown

Code Coverage

Package Line Rate Branch Rate Health
contracts 100% 100%
contracts.Admin 88% 41%
contracts.Comptroller 100% 90%
contracts.Comptroller.Diamond 95% 66%
contracts.Comptroller.Diamond.facets 88% 74%
contracts.Comptroller.Diamond.interfaces 100% 100%
contracts.Comptroller.Types 100% 100%
contracts.Comptroller.legacy 100% 100%
contracts.Comptroller.legacy.Diamond 0% 0%
contracts.Comptroller.legacy.Diamond.facets 0% 0%
contracts.Comptroller.legacy.Diamond.interfaces 100% 100%
contracts.DelegateBorrowers 100% 89%
contracts.FlashLoan.interfaces 100% 100%
contracts.Governance 68% 45%
contracts.InterestRateModels 74% 59%
contracts.Lens 44% 47%
contracts.Liquidator 83% 60%
contracts.Oracle 100% 100%
contracts.PegStability 88% 84%
contracts.Swap 90% 58%
contracts.Swap.interfaces 100% 100%
contracts.Swap.lib 81% 53%
contracts.Tokens 100% 100%
contracts.Tokens.Prime 97% 81%
contracts.Tokens.Prime.Interfaces 100% 100%
contracts.Tokens.Prime.libs 90% 77%
contracts.Tokens.VAI 82% 52%
contracts.Tokens.VRT 20% 9%
contracts.Tokens.VTokens 71% 53%
contracts.Tokens.VTokens.legacy 0% 0%
contracts.Tokens.VTokens.legacy.Utils 0% 0%
contracts.Tokens.XVS 19% 8%
contracts.Tokens.test 100% 100%
contracts.Utils 52% 31%
contracts.VAIVault 50% 45%
contracts.VRTVault 49% 36%
contracts.XVSVault 63% 50%
contracts.external 100% 100%
contracts.lib 89% 71%
Summary 61% (4412 / 7203) 47% (1665 / 3556)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants