From bd469f3347c2991ef6fc19921c98b1e6bdc92bb7 Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Sat, 24 Aug 2024 18:25:14 +0200 Subject: [PATCH] Only use break system install on macos --- .github/workflows/nodejs.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index b89514d6d75d..c29feb9447c8 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -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