Skip to content

Commit 9fa6171

Browse files
committed
fix: corepack support HTTP_PROXY
1 parent d9362d4 commit 9fa6171

File tree

3 files changed

+30
-3
lines changed

3 files changed

+30
-3
lines changed

.github/workflows/manual.yaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,17 @@ jobs:
8383
node-version: 18
8484
cache-dependency-path: pnpm-lock.yaml
8585

86+
- name: Activate corepack
87+
shell: bash
88+
run: |
89+
# corepack > 0.24.1 will use native fetch
90+
# and native fetch not support HTTP_PROXY
91+
# https://github.com/nodejs/undici/issues/1650
92+
npm install -g [email protected]
93+
corepack enable
94+
8695
- name: Install Pnpm
87-
run: corepack enable && pnpm -v && pnpm store path
96+
run: pnpm -v && pnpm store path
8897

8998
- name: Cache pnpm cache
9099
uses: actions/cache@v3

.github/workflows/pr-bench.yaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,17 @@ jobs:
6161
node-version: 18
6262
cache-dependency-path: pnpm-lock.yaml
6363

64+
- name: Activate corepack
65+
shell: bash
66+
run: |
67+
# corepack > 0.24.1 will use native fetch
68+
# and native fetch not support HTTP_PROXY
69+
# https://github.com/nodejs/undici/issues/1650
70+
npm install -g [email protected]
71+
corepack enable
72+
6473
- name: Install Pnpm
65-
run: corepack enable && pnpm -v && pnpm store path
74+
run: pnpm -v && pnpm store path
6675

6776
- name: Install Dependencies
6877
run: pnpm run install:scripts

.github/workflows/scheduled.yaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,17 @@ jobs:
8888
node-version: 18
8989
cache-dependency-path: pnpm-lock.yaml
9090

91+
- name: Activate corepack
92+
shell: bash
93+
run: |
94+
# corepack > 0.24.1 will use native fetch
95+
# and native fetch not support HTTP_PROXY
96+
# https://github.com/nodejs/undici/issues/1650
97+
npm install -g [email protected]
98+
corepack enable
99+
91100
- name: Install Pnpm
92-
run: corepack enable && pnpm -v
101+
run: pnpm -v && pnpm store path
93102

94103
- name: Cache pnpm cache
95104
uses: actions/cache@v3

0 commit comments

Comments
 (0)