Skip to content

Commit cfe29b6

Browse files
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 004eaf8 commit cfe29b6

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
@@ -27,7 +27,12 @@ jobs:
2727
with:
2828
node-version: ${{ env.NODE_VERSION }}
2929
- name: Fix node-gyp and Python
30-
run: python3 -m pip install packaging setuptools
30+
run: |
31+
if [[ "$RUNNER_OS" == "macOS" ]]; then
32+
brew install python-setuptools python-packaging
33+
else
34+
python3 -m pip install $EXTRA_ARGS packaging setuptools
35+
fi
3136
- name: Get yarn cache directory path
3237
id: yarn-cache-dir-path
3338
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)