Skip to content
This repository was archived by the owner on May 4, 2024. It is now read-only.

Commit c73cf0d

Browse files
authored
chore: use npm 9 for CI (#190)
1 parent 1f477a8 commit c73cf0d

File tree

7 files changed

+20
-19
lines changed

7 files changed

+20
-19
lines changed

.github/workflows/audit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
uses: actions/setup-node@v3
2828
with:
2929
node-version: 18.x
30-
- name: Install npm@latest
31-
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
30+
- name: Install npm@next-9
31+
run: npm i --prefer-online --no-fund --no-audit -g npm@next-9
3232
- name: npm Version
3333
run: npm -v
3434
- name: Install Dependencies

.github/workflows/ci-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ jobs:
8282
uses: actions/setup-node@v3
8383
with:
8484
node-version: 18.x
85-
- name: Install npm@latest
86-
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
85+
- name: Install npm@next-9
86+
run: npm i --prefer-online --no-fund --no-audit -g npm@next-9
8787
- name: npm Version
8888
run: npm -v
8989
- name: Install Dependencies
@@ -194,9 +194,9 @@ jobs:
194194
- name: Install npm@7
195195
if: startsWith(matrix.node-version, '10.')
196196
run: npm i --prefer-online --no-fund --no-audit -g npm@7
197-
- name: Install npm@latest
197+
- name: Install npm@next-9
198198
if: ${{ !startsWith(matrix.node-version, '10.') }}
199-
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
199+
run: npm i --prefer-online --no-fund --no-audit -g npm@next-9
200200
- name: npm Version
201201
run: npm -v
202202
- name: Install Dependencies

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131
uses: actions/setup-node@v3
3232
with:
3333
node-version: 18.x
34-
- name: Install npm@latest
35-
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
34+
- name: Install npm@next-9
35+
run: npm i --prefer-online --no-fund --no-audit -g npm@next-9
3636
- name: npm Version
3737
run: npm -v
3838
- name: Install Dependencies
@@ -91,9 +91,9 @@ jobs:
9191
- name: Install npm@7
9292
if: startsWith(matrix.node-version, '10.')
9393
run: npm i --prefer-online --no-fund --no-audit -g npm@7
94-
- name: Install npm@latest
94+
- name: Install npm@next-9
9595
if: ${{ !startsWith(matrix.node-version, '10.') }}
96-
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
96+
run: npm i --prefer-online --no-fund --no-audit -g npm@next-9
9797
- name: npm Version
9898
run: npm -v
9999
- name: Install Dependencies

.github/workflows/post-dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
uses: actions/setup-node@v3
2929
with:
3030
node-version: 18.x
31-
- name: Install npm@latest
32-
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
31+
- name: Install npm@next-9
32+
run: npm i --prefer-online --no-fund --no-audit -g npm@next-9
3333
- name: npm Version
3434
run: npm -v
3535
- name: Install Dependencies

.github/workflows/pull-request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131
uses: actions/setup-node@v3
3232
with:
3333
node-version: 18.x
34-
- name: Install npm@latest
35-
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
34+
- name: Install npm@next-9
35+
run: npm i --prefer-online --no-fund --no-audit -g npm@next-9
3636
- name: npm Version
3737
run: npm -v
3838
- name: Install Dependencies

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ jobs:
4444
uses: actions/setup-node@v3
4545
with:
4646
node-version: 18.x
47-
- name: Install npm@latest
48-
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
47+
- name: Install npm@next-9
48+
run: npm i --prefer-online --no-fund --no-audit -g npm@next-9
4949
- name: npm Version
5050
run: npm -v
5151
- name: Install Dependencies
@@ -157,8 +157,8 @@ jobs:
157157
uses: actions/setup-node@v3
158158
with:
159159
node-version: 18.x
160-
- name: Install npm@latest
161-
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
160+
- name: Install npm@next-9
161+
run: npm i --prefer-online --no-fund --no-audit -g npm@next-9
162162
- name: npm Version
163163
run: npm -v
164164
- name: Install Dependencies

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"16.x",
6161
"18.0.0",
6262
"18.x"
63-
]
63+
],
64+
"npmSpec": "next-9"
6465
}
6566
}

0 commit comments

Comments
 (0)