Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f84b430

Browse files
fix(CI): resolve crash when downloading NPM@10 /w Node 16 (#247)
1 parent ba18dcd commit f84b430

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

‎.github/workflows/pull-request.yml‎

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ on:
33
pull_request:
44
types: [opened, reopened, synchronize]
55

6-
env:
7-
NPM_VERSION: latest
8-
96
jobs:
107
test:
118
runs-on: ubuntu-latest
@@ -22,13 +19,9 @@ jobs:
2219
uses: actions/setup-node@v3
2320
with:
2421
node-version: ${{ matrix.node }}
25-
- name: Install latest npm
26-
run: |
27-
npm install -g npm@$NPM_VERSION &&
28-
npm --version &&
29-
npm list -g --depth 0
30-
- name: Install dependencies
31-
run: npm ci
22+
cache: 'npm'
23+
- name: Install latest NPM version
24+
run: npm install -g npm@9
3225
- name: Install dependencies
3326
run: npm ci
3427
- name: Run tests
@@ -46,6 +39,7 @@ jobs:
4639
uses: actions/setup-node@v3
4740
with:
4841
node-version: '16'
42+
cache: 'npm'
4943
- name: Install dependencies
5044
run: npm ci
5145
- name: Run ESLint

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /