Skip to content

chore: use npm ci in CI and align Node.js version across workflows#300

Open
maxnoller wants to merge 1 commit intomainfrom
chore/npm-ci-node-version
Open

chore: use npm ci in CI and align Node.js version across workflows#300
maxnoller wants to merge 1 commit intomainfrom
chore/npm-ci-node-version

Conversation

@maxnoller
Copy link
Copy Markdown
Member

Summary

  • npm installnpm ci: All three jobs in ci.yml (docker-preflight, unit-tests, npm-e2e) were using npm install during CI runs. Replaced with npm ci for lockfile-exact reproducible installs — npm ci is faster, respects the lockfile strictly, and fails if the lockfile is out of sync with package.json.
  • Node.js version alignment: publish-release.yml's publish-npm job was using node-version: 24 while ci.yml uses 22. Aligned the release job to 22 to match the engines.node: "22.x" field in package.json and ensure test and release environments run on the same Node.js version.
  • Added cache: npm to the publish-npm job's setup-node step, consistent with all other Node.js steps in both workflow files.

Test plan

  • Verify CI workflow passes on this PR (all three jobs use npm ci)
  • Verify no unintended changes to npm run setup or any other npm script invocations
  • Confirm publish-release.yml diff is limited to node-version: 22 and cache: npm addition

Replace npm install with npm ci in all three ci.yml jobs (docker-preflight,
unit-tests, npm-e2e) for lockfile-exact reproducible installs that fail fast
when the lockfile is out of sync.

Align Node.js version: publish-release.yml's publish-npm job was using
node-version: 24 while ci.yml uses 22; both now use 22 to match the
engines.node field in package.json ("22.x"). Also add cache: npm to
the publish-npm setup-node step for consistency with all other Node.js steps.
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