From 7616fe49c9ee58b400ef0fd332cc8858d3947788 Mon Sep 17 00:00:00 2001 From: Josh Black Date: Mon, 8 Apr 2024 13:44:07 -0500 Subject: [PATCH] ci: update npm cli to latest version (#4482) * ci: update npm cli to latest version * ci: update release canary workflow to use correct input --------- Co-authored-by: Josh Black --- .../workflows/assign_release_conductor.yml | 1 + .github/workflows/ci.yml | 23 +++++++++---------- .github/workflows/consumer_test.yml | 1 + .github/workflows/deploy_preview.yml | 1 + .github/workflows/deploy_preview_forks.yml | 1 + .github/workflows/release-schedule.yml | 1 + .github/workflows/release.yml | 1 + .github/workflows/release_canary.yml | 4 +++- .github/workflows/release_candidate.yml | 1 + .github/workflows/vrt.yml | 1 + 10 files changed, 22 insertions(+), 13 deletions(-) diff --git a/.github/workflows/assign_release_conductor.yml b/.github/workflows/assign_release_conductor.yml index ff5d2a81b1..e976de684e 100644 --- a/.github/workflows/assign_release_conductor.yml +++ b/.github/workflows/assign_release_conductor.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 01341a5301..d34326e0d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/consumer_test.yml b/.github/workflows/consumer_test.yml index f38d79e0d5..63973ded26 100644 --- a/.github/workflows/consumer_test.yml +++ b/.github/workflows/consumer_test.yml @@ -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 diff --git a/.github/workflows/deploy_preview.yml b/.github/workflows/deploy_preview.yml index 685e18cb65..ac9266642f 100644 --- a/.github/workflows/deploy_preview.yml +++ b/.github/workflows/deploy_preview.yml @@ -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 diff --git a/.github/workflows/deploy_preview_forks.yml b/.github/workflows/deploy_preview_forks.yml index a4a955ecb6..0c59811c9f 100644 --- a/.github/workflows/deploy_preview_forks.yml +++ b/.github/workflows/deploy_preview_forks.yml @@ -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 diff --git a/.github/workflows/release-schedule.yml b/.github/workflows/release-schedule.yml index 6ac115b4bf..05ea7c517c 100644 --- a/.github/workflows/release-schedule.yml +++ b/.github/workflows/release-schedule.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fe070b0dd4..70e836090b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.github/workflows/release_canary.yml b/.github/workflows/release_canary.yml index 96765d3d8c..474344c80a 100644 --- a/.github/workflows/release_canary.yml +++ b/.github/workflows/release_canary.yml @@ -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 diff --git a/.github/workflows/release_candidate.yml b/.github/workflows/release_candidate.yml index ab0a6c8305..db33fa9d69 100644 --- a/.github/workflows/release_candidate.yml +++ b/.github/workflows/release_candidate.yml @@ -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 diff --git a/.github/workflows/vrt.yml b/.github/workflows/vrt.yml index ca00c602cc..b76f5ea4bb 100644 --- a/.github/workflows/vrt.yml +++ b/.github/workflows/vrt.yml @@ -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