Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit 8624da9

Browse files
committed
Install recent node-gyp globally
1 parent cce6298 commit 8624da9

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/tagged_release.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ jobs:
2121
uses: actions/setup-node@v2
2222
with:
2323
node-version: ${{matrix.node}}
24-
- name: Install node-gyp
24+
- name: Install global node-gyp on Linux
25+
if: ${{matrix.os == 'ubuntu-latest'}}
2526
run: sudo npm i -g node-gyp
27+
- name: Install global node-gyp on non Linux
28+
if: ${{matrix.os != 'ubuntu-latest'}}
29+
run: npm i -g node-gyp
2630
- name: Install
2731
run: npm ci --unsafe-perm
2832
- name: Publish prebuild
@@ -45,8 +49,12 @@ jobs:
4549
uses: actions/setup-node@v2
4650
with:
4751
node-version: ${{matrix.node}}
48-
- name: Install node-gyp
52+
- name: Install global node-gyp on Linux
53+
if: ${{matrix.os == 'ubuntu-latest'}}
4954
run: sudo npm i -g node-gyp
55+
- name: Install global node-gyp on non Linux
56+
if: ${{matrix.os != 'ubuntu-latest'}}
57+
run: npm i -g node-gyp
5058
- name: Install
5159
run: npm ci --unsafe-perm
5260
- name: Publish prebuild

0 commit comments

Comments
 (0)