Skip to content

Commit

Permalink
ci: update npm cli to latest version (#4482)
Browse files Browse the repository at this point in the history
* ci: update npm cli to latest version

* ci: update release canary workflow to use correct input

---------

Co-authored-by: Josh Black <joshblack@users.noreply.github.com>
  • Loading branch information
joshblack and joshblack authored Apr 8, 2024
1 parent 2f49393 commit 7616fe4
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 13 deletions.
1 change: 1 addition & 0 deletions .github/workflows/assign_release_conductor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm i -g npm@^10.5.1
- run: npm ci
- uses: ./.github/actions/pagerduty
id: pagerduty
Expand Down
23 changes: 11 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
with:
node-version: 20
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Check for unformatted files
Expand All @@ -37,19 +38,16 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci

- name: Lint JavaScript
run: npm run lint

- name: Lint markdown
run: npm run lint:md

Expand All @@ -58,19 +56,16 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Test
run: npm run test -- --coverage

Expand All @@ -79,19 +74,16 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci

- name: Build project
run: npm run build

- name: Type check
run: npm run type-check

Expand All @@ -105,6 +97,7 @@ jobs:
with:
node-version: 20
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build
Expand All @@ -123,6 +116,7 @@ jobs:
with:
node-version: 20
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build storybook
Expand Down Expand Up @@ -162,6 +156,7 @@ jobs:
with:
node-version: 20
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: install dependencies
run: npm ci
- name: download all reports
Expand Down Expand Up @@ -193,6 +188,7 @@ jobs:
with:
node-version: 20
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build storybook
Expand Down Expand Up @@ -232,6 +228,7 @@ jobs:
with:
node-version: 20
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: install dependencies
run: npm ci
- name: download all reports
Expand Down Expand Up @@ -260,6 +257,7 @@ jobs:
with:
node-version: 20
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build components.json
Expand All @@ -275,6 +273,7 @@ jobs:
with:
node-version: 20
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/consumer_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
with:
node-version: 20
cache: npm
- run: npm i -g npm@^10.5.1
- name: Remove "prepare" script
run: npm pkg delete scripts.prepare
- name: Install dependencies
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
with:
node-version: 20
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build docs preview
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy_preview_forks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
with:
node-version: 20
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build docs preview
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
- run: npm i -g npm@^10.5.1
- name: Install packages for github-script
run: npm i date-fns
- name: Create Release Issue
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
with:
node-version: 20
cache: 'npm'
- run: npm i -g npm@^10.5.1

- name: Install dependencies
run: npm ci
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release_canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v4
with:
node_version: ${{ inputs.node_version }}
node-version: 20
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release_candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
with:
node-version: 20
cache: 'npm'
- run: npm i -g npm@^10.5.1

- name: Install dependencies
run: npm ci
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/vrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
with:
node-version: 20
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build storybook
Expand Down

0 comments on commit 7616fe4

Please sign in to comment.