Skip to content

Commit 8a04367

Browse files
committed
ci: use npx to run node-pre-gyp commands
Update GitHub workflow and package.json scripts to use npx for executing node-pre-gyp commands to ensure proper package resolution
1 parent bba4afc commit 8a04367

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/github_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Package Binary
4444
run: |
4545
npm install -g @mapbox/node-pre-gyp
46-
@mapbox/node-pre-gyp package
46+
npx @mapbox/node-pre-gyp package
4747
- name: Get Node ABI
4848
id: node_abi
4949
run: |

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
},
3535
"scripts": {
3636
"test": "mocha --timeout 10s -R spec test/test.js && mocha --timeout 10s -R spec test/load_dict_test.js",
37-
"install": "@mapbox/node-pre-gyp install --fallback-to-build",
38-
"rebuild": "@mapbox/node-pre-gyp rebuild"
37+
"install": "npx @mapbox/node-pre-gyp install --fallback-to-build",
38+
"rebuild": "npx @mapbox/node-pre-gyp rebuild"
3939
},
4040
"binary": {
4141
"module_name": "nodejieba",

0 commit comments

Comments
 (0)