Fix release workflow: build with node-gyp
This commit is contained in:
1 parent
8401fdaf91
commit
cd9ffa7c83
1 file changed
+4
-5
@@ -28,13 +28,12 @@ jobs:
|
|||||||
run: npm install -g pnpm
|
run: npm install -g pnpm
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile --ignore-scripts
|
||||||
|
|
||||||
- name: Build
|
- name: Build native addon
|
||||||
run: |
|
run: |
|
||||||
pnpm run build --if-present
|
npm install -g node-gyp
|
||||||
# Compile the native addon if the build script did not already do so
|
node-gyp rebuild
|
||||||
[ -d build/Release ] || pnpm exec node-gyp rebuild
|
|
||||||
|
|
||||||
- name: Package binary
|
- name: Package binary
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in new issue
Block a user