From c73cf0dcbc5cb4debe94bd328b1206b0f56a867d Mon Sep 17 00:00:00 2001 From: Gar Date: Fri, 8 Sep 2023 13:22:16 -0700 Subject: [PATCH] chore: use npm 9 for CI (#190) --- .github/workflows/audit.yml | 4 ++-- .github/workflows/ci-release.yml | 8 ++++---- .github/workflows/ci.yml | 8 ++++---- .github/workflows/post-dependabot.yml | 4 ++-- .github/workflows/pull-request.yml | 4 ++-- .github/workflows/release.yml | 8 ++++---- package.json | 3 ++- 7 files changed, 20 insertions(+), 19 deletions(-) diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 62892f9..407a539 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -27,8 +27,8 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18.x - - name: Install npm@latest - run: npm i --prefer-online --no-fund --no-audit -g npm@latest + - name: Install npm@next-9 + run: npm i --prefer-online --no-fund --no-audit -g npm@next-9 - name: npm Version run: npm -v - name: Install Dependencies diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml index 380de5e..0eb8897 100644 --- a/.github/workflows/ci-release.yml +++ b/.github/workflows/ci-release.yml @@ -82,8 +82,8 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18.x - - name: Install npm@latest - run: npm i --prefer-online --no-fund --no-audit -g npm@latest + - name: Install npm@next-9 + run: npm i --prefer-online --no-fund --no-audit -g npm@next-9 - name: npm Version run: npm -v - name: Install Dependencies @@ -194,9 +194,9 @@ jobs: - name: Install npm@7 if: startsWith(matrix.node-version, '10.') run: npm i --prefer-online --no-fund --no-audit -g npm@7 - - name: Install npm@latest + - name: Install npm@next-9 if: ${{ !startsWith(matrix.node-version, '10.') }} - run: npm i --prefer-online --no-fund --no-audit -g npm@latest + run: npm i --prefer-online --no-fund --no-audit -g npm@next-9 - name: npm Version run: npm -v - name: Install Dependencies diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06966af..25d483a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,8 +31,8 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18.x - - name: Install npm@latest - run: npm i --prefer-online --no-fund --no-audit -g npm@latest + - name: Install npm@next-9 + run: npm i --prefer-online --no-fund --no-audit -g npm@next-9 - name: npm Version run: npm -v - name: Install Dependencies @@ -91,9 +91,9 @@ jobs: - name: Install npm@7 if: startsWith(matrix.node-version, '10.') run: npm i --prefer-online --no-fund --no-audit -g npm@7 - - name: Install npm@latest + - name: Install npm@next-9 if: ${{ !startsWith(matrix.node-version, '10.') }} - run: npm i --prefer-online --no-fund --no-audit -g npm@latest + run: npm i --prefer-online --no-fund --no-audit -g npm@next-9 - name: npm Version run: npm -v - name: Install Dependencies diff --git a/.github/workflows/post-dependabot.yml b/.github/workflows/post-dependabot.yml index ce38340..ca6b71d 100644 --- a/.github/workflows/post-dependabot.yml +++ b/.github/workflows/post-dependabot.yml @@ -28,8 +28,8 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18.x - - name: Install npm@latest - run: npm i --prefer-online --no-fund --no-audit -g npm@latest + - name: Install npm@next-9 + run: npm i --prefer-online --no-fund --no-audit -g npm@next-9 - name: npm Version run: npm -v - name: Install Dependencies diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index b2c2479..d86daeb 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -31,8 +31,8 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18.x - - name: Install npm@latest - run: npm i --prefer-online --no-fund --no-audit -g npm@latest + - name: Install npm@next-9 + run: npm i --prefer-online --no-fund --no-audit -g npm@next-9 - name: npm Version run: npm -v - name: Install Dependencies diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3978bb1..4ea73ec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,8 +44,8 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18.x - - name: Install npm@latest - run: npm i --prefer-online --no-fund --no-audit -g npm@latest + - name: Install npm@next-9 + run: npm i --prefer-online --no-fund --no-audit -g npm@next-9 - name: npm Version run: npm -v - name: Install Dependencies @@ -157,8 +157,8 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18.x - - name: Install npm@latest - run: npm i --prefer-online --no-fund --no-audit -g npm@latest + - name: Install npm@next-9 + run: npm i --prefer-online --no-fund --no-audit -g npm@next-9 - name: npm Version run: npm -v - name: Install Dependencies diff --git a/package.json b/package.json index 01061f2..51dbe5c 100644 --- a/package.json +++ b/package.json @@ -60,6 +60,7 @@ "16.x", "18.0.0", "18.x" - ] + ], + "npmSpec": "next-9" } }