From 1232445e0a9a0255a3ecf9d09fa3b76da58db8fc Mon Sep 17 00:00:00 2001 From: Iku-turso Date: Thu, 4 May 2023 12:31:21 +0300 Subject: [PATCH] chore: Make ci "npm ci" using correct version of NPM Signed-off-by: Iku-turso --- .github/workflows/cron-test.yaml | 2 +- .github/workflows/publish-docs.yml | 2 +- .github/workflows/publish-release-npm.yml | 2 +- .github/workflows/test.yml | 4 ++-- package.json | 1 + 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cron-test.yaml b/.github/workflows/cron-test.yaml index 5be4bfac2d..0df76a482b 100644 --- a/.github/workflows/cron-test.yaml +++ b/.github/workflows/cron-test.yaml @@ -48,7 +48,7 @@ jobs: timeout_minutes: 20 max_attempts: 3 retry_on: error - command: npm ci + command: npm run all:install-in-ci - name: Build library parts run: npm run build -- --ignore open-lens diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index a22ddbf1cd..1702e8d59f 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -77,7 +77,7 @@ jobs: - name: Generate Extensions API Reference using typedocs run: | - npm ci + npm run all:install-in-ci npm run build:docs - name: mkdocs deploy master diff --git a/.github/workflows/publish-release-npm.yml b/.github/workflows/publish-release-npm.yml index 01ca775fbe..599e95b710 100644 --- a/.github/workflows/publish-release-npm.yml +++ b/.github/workflows/publish-release-npm.yml @@ -32,7 +32,7 @@ jobs: - name: Generate NPM packages run: | - npm ci + npm run all:install-in-ci npm run build - name: Publish NPM packages diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1244f45647..f34b1c4ed8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -55,7 +55,7 @@ jobs: timeout_minutes: 20 max_attempts: 3 retry_on: error - command: npm ci + command: npm run all:install-in-ci - name: Install integration test dependencies id: minikube @@ -122,7 +122,7 @@ jobs: timeout_minutes: 20 max_attempts: 3 retry_on: error - command: npm ci + command: npm run all:install-in-ci - run: | npm run build -- --ignore open-lens diff --git a/package.json b/package.json index 5bba9e97f3..45833c2f9b 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "scripts": { "all:reinstall": "npm run clean:node_modules && npm run all:install", "all:install": "npx --yes --package npm@9.6.5 npm install", + "all:install-in-ci": "npx --yes --package npm@9.6.5 npm ci", "adr:create": "echo \"What is the title?\"; read title; adr new \"$title\"", "adr:change-status": "echo \"Decision number?:\"; read decision; adr status $decision", "adr:update-readme": "adr update",