Skip to content

Commit ea63068

Browse files
corneliusroemerphilip-peterson
authored andcommitted
dev(ci): add --break-system-packages to pip install
Partially resolves vercel#8025 Only use break system install on macos Try extra brew install Brew install on mac, pip install on rest Try using windows-2019 instead of latest (2022) Back to original windows
1 parent bd1adbf commit ea63068

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/nodejs.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ jobs:
2828
with:
2929
node-version: ${{ env.NODE_VERSION }}
3030
- name: Fix node-gyp and Python
31-
run: python3 -m pip install packaging setuptools --break-system-packages || python3 -m pip install packaging setuptools
31+
run: |
32+
if [[ "$RUNNER_OS" == "macOS" ]]; then
33+
brew install python-setuptools python-packaging
34+
else
35+
python3 -m pip install $EXTRA_ARGS packaging setuptools
36+
fi
3237
- name: Get yarn cache directory path
3338
id: yarn-cache-dir-path
3439
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)