Skip to content

Commit

Permalink
Only use break system install on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliusroemer committed Aug 24, 2024
1 parent 17cac3e commit bd469f3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ jobs:
with:
node-version: ${{ env.NODE_VERSION }}
- name: Fix node-gyp and Python
run: pip install --break-system-packages packaging setuptools
run: |
if [[ "$RUNNER_OS" == "macOS" ]]; then
EXTRA_ARGS="--break-system-packages"
else
EXTRA_ARGS=""
fi
python3 -m pip install $EXTRA_ARGS packaging setuptools
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit bd469f3

Please sign in to comment.