From 3e82075cf2375f07ea19711455280d57defc8801 Mon Sep 17 00:00:00 2001 From: Maximilian Noller Date: Mon, 13 Apr 2026 17:30:50 +0200 Subject: [PATCH] chore: use npm ci in CI and align Node.js version across workflows 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. --- .github/workflows/ci.yml | 6 +++--- .github/workflows/publish-release.yml | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3c1b4a17..87f1d9fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,7 +53,7 @@ jobs: cache: npm - name: Install test dependencies (e2e) - run: npm install + run: npm ci - name: Gateway e2e tests (local, no API key) if: matrix.name == 'gateway' @@ -90,7 +90,7 @@ jobs: cache: npm - name: Install dependencies - run: npm install + run: npm ci - name: Install container dependencies run: npm run setup @@ -196,7 +196,7 @@ jobs: cache: npm - name: Install dependencies - run: npm install + run: npm ci - name: Build release artifacts run: npm run build diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 75b2a434..1d2c0220 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -250,7 +250,8 @@ jobs: - name: Setup Node.js uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: - node-version: 24 + node-version: 22 + cache: npm - name: Install dependencies run: npm ci