Skip to content

Commit

Permalink
use npm ci in GHA
Browse files Browse the repository at this point in the history
- identifies inconsistencies between `package.json` and `package-lock.json` before it reaches PT10S builds
  • Loading branch information
irahopkinson committed Nov 7, 2024
1 parent debbc3f commit 42c4195
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/package-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 42c4195

Please sign in to comment.