Skip to content

Commit 2fc4557

Browse files
committed
Update package.json to include node-gyp-build in install script and modify GitHub Actions workflow to run bun install with --ignore-scripts
1 parent 713b51a commit 2fc4557

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
arch: x64
1818
- os: ubuntu-24.04-arm
1919
arch: arm64
20-
- os: macos-15-intel
21-
arch: x64
20+
# - os: macos-15-intel
21+
# arch: x64
2222
- os: macos-latest
2323
arch: arm64
24-
- os: windows-latest
25-
arch: x64
24+
# - os: windows-latest
25+
# arch: x64
2626
runs-on: ${{ matrix.os }}
2727
steps:
2828
- uses: actions/checkout@v5
@@ -34,7 +34,7 @@ jobs:
3434
- uses: oven-sh/setup-bun@v2
3535
with:
3636
bun-version: latest
37-
- run: bun install
37+
- run: bun install --ignore-scripts
3838
- run: bun run prebuild
3939
- uses: actions/upload-artifact@v6
4040
with:

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"prepublishOnly": "bun scripts/prepublish.ts",
1212
"benchmark": "node --expose-gc test/benchmark.js",
1313
"prebuild": "prebuildify --napi --strip",
14+
"install": "node-gyp-build",
1415
"prepack": "git submodule update --init --recursive"
1516
},
1617
"gypfile": true,
@@ -34,8 +35,5 @@
3435
"bugs": {
3536
"url": "https://github.com/reactnativecn/node-hdiffpatch/issues"
3637
},
37-
"homepage": "https://github.com/reactnativecn/node-hdiffpatch#readme",
38-
"trustedDependencies": [
39-
"node-gyp"
40-
]
38+
"homepage": "https://github.com/reactnativecn/node-hdiffpatch#readme"
4139
}

0 commit comments

Comments
 (0)