diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 6ed7c8a46bb..07c27d2259f 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -28,7 +28,12 @@ jobs: with: node-version: ${{ env.NODE_VERSION }} - name: Fix node-gyp and Python - run: python3 -m pip install packaging setuptools + run: | + if [[ "$RUNNER_OS" == "macOS" ]]; then + brew install python-setuptools python-packaging + else + python3 -m pip install $EXTRA_ARGS packaging setuptools + fi - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT