Skip to content

Commit 57ef655

Browse files
committed
Fix node-gyp failure on macOS
1 parent 9658969 commit 57ef655

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/release.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,16 @@ jobs:
216216
curl -sSfL https://github.com/goreleaser/nfpm/releases/download/v2.3.1/nfpm_2.3.1_`uname -s`_`uname -m`.tar.gz | tar -C ~/.local/bin -zxv nfpm
217217
echo "$HOME/.local/bin" >> $GITHUB_PATH
218218
219+
# The version of node-gyp we use depends on distutils but it was removed
220+
# in Python 3.12. It seems to be fixed in the latest node-gyp so when we
221+
# next update Node we can probably remove this. Note that Node >=18.18 no
222+
# longer bundles node-gyp and Yarn v1 has a bug when auto-installing it
223+
# where it does not run post-install scripts so we will have to add
224+
# node-gyp manually to all the steps that install yarn/npm packages when
225+
# that time comes.
226+
- name: Install Python utilities
227+
run: python3 -m pip install packaging
228+
219229
- name: Download npm package
220230
uses: actions/download-artifact@v3
221231
with:

0 commit comments

Comments
 (0)