Skip to content

Commit 1e16312

Browse files
committed
ci: fix 'ERR_PNPM_FETCH_404'
1 parent c2ffaca commit 1e16312

File tree

2 files changed

+31
-11
lines changed

2 files changed

+31
-11
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,18 @@ jobs:
1818

1919
- name: Install pnpm
2020
uses: pnpm/action-setup@v2
21+
with:
22+
version: latest
2123

2224
- name: Set node version to LTS
2325
uses: actions/setup-node@v3
2426
with:
2527
node-version: lts/*
2628
cache: 'pnpm'
2729

30+
- name: Use npmmirror registry
31+
run: pnpm config set registry https://registry.npmmirror.com
32+
2833
- run: PUPPETEER_SKIP_DOWNLOAD=1 pnpm install
2934

3035
- name: Run case police
@@ -40,13 +45,18 @@ jobs:
4045

4146
- name: Install pnpm
4247
uses: pnpm/action-setup@v2
48+
with:
49+
version: latest
4350

4451
- name: Set node version to LTS
4552
uses: actions/setup-node@v3
4653
with:
4754
node-version: lts/*
4855
cache: 'pnpm'
4956

57+
- name: Use npmmirror registry
58+
run: pnpm config set registry https://registry.npmmirror.com
59+
5060
- run: PUPPETEER_SKIP_DOWNLOAD=1 pnpm install
5161

5262
- name: Run unit tests

pnpm-lock.yaml

Lines changed: 21 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)