From d500a5b1ba6e6600e0a3f4486a3c496304f95c3f Mon Sep 17 00:00:00 2001 From: Francis Gulotta Date: Tue, 29 Oct 2019 23:02:35 -0400 Subject: [PATCH] fix: upgrade npm on GitHub actions to fix bug (#1973) GitHub actions has some intermittent bugs when installing packages. Hopefully this helps. --- .github/workflows/lint.yml | 2 ++ .github/workflows/test-merge.yml | 2 ++ .github/workflows/test.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1676459aa..026cef523 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,6 +14,8 @@ jobs: uses: actions/setup-node@v1 with: node-version: 12 + - name: upgrade npm + run: npm install -g npm - name: npm install run: npm install - name: npm run lint diff --git a/.github/workflows/test-merge.yml b/.github/workflows/test-merge.yml index cd4643913..b034fadac 100644 --- a/.github/workflows/test-merge.yml +++ b/.github/workflows/test-merge.yml @@ -29,6 +29,8 @@ jobs: run: | npm install --global node-gyp@latest npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"} + - name: upgrade npm + run: npm install -g npm - name: npm install run: npm install - name: npm run rebuild diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b4e76ee67..beeb75a6c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,6 +25,8 @@ jobs: run: | npm install --global node-gyp@latest npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"} + - name: upgrade npm + run: npm install -g npm - name: npm install run: npm install - name: npm run rebuild