From a946a3acf583d12fa76685dd34bfe2a1b2885b96 Mon Sep 17 00:00:00 2001 From: Nikola Jokic Date: Thu, 23 Apr 2026 17:59:37 +0200 Subject: [PATCH] fix(ci): make bootstrap deterministic and align CI installs - Change package.json bootstrap to use 'npm ci --prefix packages/hooklib' - Change k8s-tests workflow to use 'npm ci' instead of 'npm install' - All three packages (hooklib, k8s, docker) now use deterministic installs - All three CI jobs (format-and-lint, docker-tests, k8s-tests) now use npm ci --- .github/workflows/build.yaml | 8 +++++++- package.json | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index bc125b9..7a3e1ec 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -17,6 +17,8 @@ jobs: with: node-version: 24 cache: npm + - run: node --version && npm --version + name: Log Node and npm versions - run: npm ci name: Install dependencies - run: npm run bootstrap @@ -40,6 +42,8 @@ jobs: with: node-version: 24 cache: npm + - run: node --version && npm --version + name: Log Node and npm versions - run: npm ci name: Install dependencies - run: npm run bootstrap @@ -64,7 +68,9 @@ jobs: - uses: helm/kind-action@v1.12.0 with: config: packages/k8s/tests/test-kind.yaml - - run: npm install + - run: node --version && npm --version + name: Log Node and npm versions + - run: npm ci name: Install dependencies - run: npm run bootstrap name: Bootstrap the packages diff --git a/package.json b/package.json index 2174385..ed388de 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ }, "scripts": { "test": "npm run test --prefix packages/docker && npm run test --prefix packages/k8s", - "bootstrap": "npm install --prefix packages/hooklib && npm ci --prefix packages/k8s && npm ci --prefix packages/docker", + "bootstrap": "npm ci --prefix packages/hooklib && npm ci --prefix packages/k8s && npm ci --prefix packages/docker", "format": "prettier --write '**/*.ts'", "format-check": "prettier --check '**/*.ts'", "lint": "eslint packages/**/*.ts",