From 6eb9d8fddc4785b0c77f20cf0b20cf9be6707071 Mon Sep 17 00:00:00 2001 From: Ira Hopkinson Date: Fri, 8 Nov 2024 11:30:45 +1300 Subject: [PATCH] use `npm ci` in GHA (#1274) - identifies inconsistencies between `package.json` and `package-lock.json` before it reaches PT10S builds --- .github/workflows/package-main.yml | 4 ++-- .github/workflows/publish-docs.yml | 4 ++-- .github/workflows/publish.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/package-main.yml b/.github/workflows/package-main.yml index ecb0e5ab60..bb107f069e 100644 --- a/.github/workflows/package-main.yml +++ b/.github/workflows/package-main.yml @@ -52,9 +52,9 @@ jobs: node-version: ${{ fromJson(steps.package_json.outputs.volta).node }} cache: npm - - name: Install and build + - name: Install packages and build run: | - npm install + npm ci npm run build - name: Update release version diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 114db62c64..2fe8adb7a3 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -25,9 +25,9 @@ jobs: node-version: ${{ fromJson(steps.package_json.outputs.volta).node }} cache: npm - - name: Install and build + - name: Install packages and build run: | - npm install + npm ci npm run build - name: Build documentation diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0ab2ccd8e4..ae29240a3f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -52,9 +52,9 @@ jobs: node-version: ${{ fromJson(steps.package_json.outputs.volta).node }} cache: npm - - name: Install and build + - name: Install packages and build run: | - npm install + npm ci npm run build - name: Publish releases - Windows diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b83d8dc9d9..721eae3bcd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -54,8 +54,8 @@ jobs: node-version: ${{ fromJson(steps.package_json.outputs.volta).node }} cache: npm - - name: npm install - run: npm install + - name: Install packages + run: npm ci - name: Build run: npm run build