From 8337acb32c90512d1619d033a0ac0f88812f69ac Mon Sep 17 00:00:00 2001 From: Labhansh Agrawal Date: Thu, 15 Jun 2023 16:12:00 +0530 Subject: [PATCH] use local node-gyp during install --- .github/workflows/nodejs.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index aa0ee58d..1e5f00cd 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -38,6 +38,8 @@ jobs: ${{ runner.os }}-yarn- - name: Install run: yarn install + env: + npm_config_node_gyp: ${{ github.workspace }}${{ runner.os == 'Windows' && '\node_modules\node-gyp\bin\node-gyp.js' || '/node_modules/node-gyp/bin/node-gyp.js' }} - name: Lint and Run Unit Tests run: yarn run test - name: Getting Build Icon