From 471bf65f87a509367d570cdcc73c7235d4b982f7 Mon Sep 17 00:00:00 2001 From: HRS Date: Sun, 11 Jan 2026 22:14:10 +0100 Subject: [PATCH] Switch to reuse npm run target for prebuild --- .github/workflows/prebuild.yml | 6 +----- package.json | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/prebuild.yml b/.github/workflows/prebuild.yml index 487cbd1..cec5fe5 100644 --- a/.github/workflows/prebuild.yml +++ b/.github/workflows/prebuild.yml @@ -50,12 +50,8 @@ jobs: - name: Install dependencies run: npm install --ignore-scripts - - name: Install prebuildify - run: npm install -g prebuildify - - name: Prebuild - run: prebuildify --napi --strip - + run: npm run prebuild - name: Upload prebuilds uses: actions/upload-artifact@v4 diff --git a/package.json b/package.json index 3820eef..0d7e45f 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,8 @@ "scripts": { "test": "standard && node-gyp rebuild --mpg123-backend=dummy && mocha --reporter spec", "install": "prebuild-install || node-gyp rebuild", - "prebuild": "prebuildify --napi --strip", - "prebuild-all": "prebuildify-cross --napi --strip" + "prebuild": "npx prebuildify --napi --strip", + "prebuild-all": "npx prebuildify-cross --napi --strip" }, "dependencies": { "bindings": "^1.3.0",