From 6a281a782e126ccfc9185dcaed79927a75c24ada Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Thu, 19 Mar 2020 11:44:16 +0200 Subject: [PATCH] [publish binary] --- .travis.yml | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index d7ac1f3..7352e7c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -68,12 +68,12 @@ before_script: # package & publish # ------------------------ - - if [[ $PUBLISH_BINARY == true ]]; then npm run node-pre-gyp package publish; fi; + - if [[ $PUBLISH_BINARY == true ]]; then ./node_modules/.bin/node-pre-gyp package publish; fi; # clean-up # ------------------------ - - npm run node-pre-gyp clean + - ./node_modules/.bin/node-pre-gyp clean - node-gyp clean script: @@ -86,14 +86,14 @@ script: - INSTALL_RESULT=0 - if [[ $PUBLISH_BINARY == true ]]; then INSTALL_RESULT=$(npm install --fallback-to-build=false > /dev/null)$? || true; fi; - - npm run node-pre-gyp clean + - ./node_modules/.bin/node-pre-gyp clean # failure? # ------------------------ # if install returned non zero (errored) then we first unpublish and then # call false so travis will bail at this line. - - if [[ $INSTALL_RESULT != 0 ]]; then npm run node-pre-gyp unpublish; fi; + - if [[ $INSTALL_RESULT != 0 ]]; then ./node_modules/.bin/node-pre-gyp unpublish; fi; - if [[ $INSTALL_RESULT != 0 ]]; then echo "returned $INSTALL_RESULT";false; fi; after_success: diff --git a/package.json b/package.json index c0d0140..0672e1b 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "dependencies": { "bindings": "^1.5.0", "nan": "^2.12.1", - "node-pre-gyp": "latest" + "node-pre-gyp": "^0.14.0" }, "os": [ "darwin"