Skip to content

chore: standardize Node/npm version handling#29578

Merged
mvvmm merged 3 commits intoproductionfrom
resolve-version-madness
Apr 6, 2026
Merged

chore: standardize Node/npm version handling#29578
mvvmm merged 3 commits intoproductionfrom
resolve-version-madness

Conversation

@mvvmm
Copy link
Copy Markdown
Contributor

@mvvmm mvvmm commented Apr 3, 2026

Summary

  • Replace engines with devEngines, and remove engine-strict from .npmrc

    • devEngines is our new indication to contributors about which node version and package managers we use, and is only enforced by npm and when using corepack (default in node v24), so it doesn't block folks from using other package managers. When using npm though, this enforces the node v > 24 and npm v > 11, which is the level of enforcement we want.
    Screenshot 2026-04-03 at 11 26 34 AM
  • Add preinstall script that errors if not using npm and dd lockfiles from other package managers to .gitignore.

    • This solves the "don't let folks use other package managers" problem.
      Screenshot 2026-04-03 at 10 17 11 AM
  • Add node version to cache keys across all workflows to prevent cache conflicts between Node versions

    • Solves the current problem of our CI potentially caching across node/npm versions.
    Screenshot 2026-04-03 at 10 26 59 AM
  • Standardize node-version to 24.x format and add step IDs for version output

  • Update .nvmrc to use major version only (24)

    • Matches the level of enforcement in devEngines and CI

… workflows

- Add node version to cache keys across all workflows to prevent cache conflicts between Node versions
- Standardize node-version to 24.x format and add step IDs for version output
- Replace engines with devEngines for better package manager enforcement
- Update .nvmrc to use major version only (24)
- Remove engine-strict from .npmrc
- Add lockfiles from other package managers to .gitignore
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/.github/ @cloudflare/content-engineering, @kodster28, @mvvmm, @colbywhite, @ahaywood, @MohamedH1998
* @cloudflare/pcx-technical-writing
package.json @cloudflare/content-engineering

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

@mvvmm mvvmm merged commit 67c5dbd into production Apr 6, 2026
11 checks passed
@mvvmm mvvmm deleted the resolve-version-madness branch April 6, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants