diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 62399204..0901c226 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,6 +28,7 @@ jobs: run: yarn run gql-gen - name: Build and Release run: yarn run release + MacOs: runs-on: macos-latest env: @@ -68,15 +69,13 @@ jobs: - uses: actions/setup-node@master with: node-version: "18" - - name: Update node-gyp - run: | - $WhereNode = Get-Command node | Select-Object -ExpandProperty Definition - $NodeDirPath = Split-Path $WhereNode -Parent - $NodeModulesPath = $NodeDirPath + "\node_modules\npm\node_modules\@npmcli\run-script" - cd $NodeModulesPath - npm install node-gyp@latest - - name: Update registry URL + - name: Configure Node + shell: powershell run: | + # npm v9 doesn't allow custom config parameters (i.e. node_gyp) anymode, so we have to downgrade it to v8 + npm install -g npm@8 + npm install -g node-gyp@latest + npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"} npm config set registry "http://registry.npmjs.org" yarn config set registry "http://registry.npmjs.org" yarn config set network-timeout 300000 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6413ef8e..b248f135 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -33,6 +33,7 @@ jobs: # run: yarn run lint:ci - name: Build run: yarn run build + MacOs: runs-on: macos-latest env: