Skip to content

Commit 6a281a7

Browse files
committed
[publish binary]
1 parent acc2bce commit 6a281a7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ before_script:
6868
# package & publish
6969
# ------------------------
7070

71-
- if [[ $PUBLISH_BINARY == true ]]; then npm run node-pre-gyp package publish; fi;
71+
- if [[ $PUBLISH_BINARY == true ]]; then ./node_modules/.bin/node-pre-gyp package publish; fi;
7272

7373
# clean-up
7474
# ------------------------
7575

76-
- npm run node-pre-gyp clean
76+
- ./node_modules/.bin/node-pre-gyp clean
7777
- node-gyp clean
7878

7979
script:
@@ -86,14 +86,14 @@ script:
8686
- INSTALL_RESULT=0
8787
- if [[ $PUBLISH_BINARY == true ]]; then INSTALL_RESULT=$(npm install --fallback-to-build=false > /dev/null)$? || true; fi;
8888

89-
- npm run node-pre-gyp clean
89+
- ./node_modules/.bin/node-pre-gyp clean
9090

9191
# failure?
9292
# ------------------------
9393
# if install returned non zero (errored) then we first unpublish and then
9494
# call false so travis will bail at this line.
9595

96-
- if [[ $INSTALL_RESULT != 0 ]]; then npm run node-pre-gyp unpublish; fi;
96+
- if [[ $INSTALL_RESULT != 0 ]]; then ./node_modules/.bin/node-pre-gyp unpublish; fi;
9797
- if [[ $INSTALL_RESULT != 0 ]]; then echo "returned $INSTALL_RESULT";false; fi;
9898

9999
after_success:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dependencies": {
77
"bindings": "^1.5.0",
88
"nan": "^2.12.1",
9-
"node-pre-gyp": "latest"
9+
"node-pre-gyp": "^0.14.0"
1010
},
1111
"os": [
1212
"darwin"

0 commit comments

Comments
 (0)