Skip to content

Commit

Permalink
Build: using 'npm i' as behavior works much better with cached node_m…
Browse files Browse the repository at this point in the history
…odules

According to [this comment](npm/rfcs#415 (comment))
more recent lockfiles will be much more accurate when using regular
install as opposed to the behavior of previous lockfiles, where a
regular install would cause random unexpected updates.
  • Loading branch information
stevematney committed Oct 30, 2023
1 parent 4d66e3e commit e38d1bb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/canary-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ jobs:
cache: 'npm'

- uses: actions/cache@v3
id: node-cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-
- name: Install Dependencies
run: |
npm ci --prefer-offline --no-audit
- run: |
npm i --prefer-offline --no-audit
- name: Set Commitbot Identity
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Install Dependencies
run: |
npm ci --prefer-offline --no-audit
npm i --prefer-offline --no-audit
- name: Run Lint
working-directory: packages/es-components
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
- name: Install Dependencies
run: |
npm ci --prefer-offline --no-audit
npm i --prefer-offline --no-audit
- name: Set Commitbot Identity
run: |
Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:
- name: Install Dependencies
run: |
npm ci --prefer-offline --no-audit
npm i --prefer-offline --no-audit
- name: Set Commitbot Identity
run: |
Expand Down Expand Up @@ -187,7 +187,7 @@ jobs:
- name: Install Dependencies
run: |
npm ci --prefer-offline --no-audit
npm i --prefer-offline --no-audit
- name: Set Commitbot Identity
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cypress-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Install Dependencies
run: |
npm ci --prefer-offline --no-audit
npm i --prefer-offline --no-audit
- name: Setup Cypress
working-directory: ${{ env.ES_COMPONENTS_DIR }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/preprod-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Install Dependencies
run: |
npm ci --prefer-offline --no-audit
npm i --prefer-offline --no-audit
- name: Set Commitbot Identity
run: |
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
- name: Install Dependencies
run: |
npm ci --prefer-offline --no-audit
npm i --prefer-offline --no-audit
- name: Set Commitbot Identity
run: |
Expand Down

0 comments on commit e38d1bb

Please sign in to comment.