Skip to content

chore: pin Node toolchain to 22 across machines and CI#48

Merged
WhiteMuush merged 1 commit into
mainfrom
chore/pin-node-toolchain
Jun 16, 2026
Merged

chore: pin Node toolchain to 22 across machines and CI#48
WhiteMuush merged 1 commit into
mainfrom
chore/pin-node-toolchain

Conversation

@WhiteMuush

Copy link
Copy Markdown
Owner

What

  • Add .nvmrc (22) and engines.node so every checkout targets one Node version.
  • Add .npmrc with engine-strict so npm install fails fast on the wrong Node instead of producing a subtly different install.
  • Bump CI to Node 22 and update the README prerequisite.

Why

Docker here only containerizes Postgres, so it pins the database engine but not the Node toolchain. The Node version still drifted between machines (local 22, CI 20, README "20 or later"), a source of the recurring cross-machine environment problems. This pins the JS side to match.

Verification

npm ci --dry-run reports no engine error on Node 22, npm test (6 passing) and npm run lint -- --max-warnings 0 green locally.

Docker only containerizes Postgres, so the Node version still drifted
between machines (local 22, CI 20, README 20+), which is a source of the
recurring environment problems.

- Add .nvmrc (22) and engines.node so every checkout targets one Node.
- Add .npmrc engine-strict so npm install fails fast on a wrong Node
  instead of producing a subtly different install.
- Bump CI to Node 22 and update the README prerequisite.
@WhiteMuush WhiteMuush merged commit 4ace83a into main Jun 16, 2026
11 checks passed
@WhiteMuush WhiteMuush deleted the chore/pin-node-toolchain branch June 16, 2026 10:20
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.

1 participant