From 9c26d95b1b8c621ffabbe2b9531b20e57880bd31 Mon Sep 17 00:00:00 2001 From: Jason Stallings Date: Mon, 26 Feb 2018 13:20:21 -0600 Subject: [PATCH] Deploy scripts. --- .travis.yml | 4 ++++ package-lock.json | 38 +++++++++++++++++++++++++++++++++++--- package.json | 7 ++++--- 3 files changed, 43 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8965264f..c9bb989c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -49,6 +49,10 @@ install: script: - npm test +after_success: + - if [ $TRAVIS_BRANCH == "master" ]; then echo "upload=$GITHUB_TOKEN" > ~/.prebuildrc; fi + - if [ $TRAVIS_BRANCH == "master" ]; then npm run deploy; fi + notifications: webhooks: urls: diff --git a/package-lock.json b/package-lock.json index 6d3fa6eb..0e157b1d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1544,6 +1544,35 @@ "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" }, + "nw-gyp": { + "version": "3.6.3", + "resolved": "https://registry.npmjs.org/nw-gyp/-/nw-gyp-3.6.3.tgz", + "integrity": "sha512-EpzoqMs7ZnRpjzNMGozuQT+1lp+mUNg5nkPlTelo+LXUyqAMnPJ48kNy3KNpaTMmI9G+9XrOCEEaRDGlIsDq7Q==", + "dev": true, + "requires": { + "fstream": "1.0.11", + "glob": "7.1.2", + "graceful-fs": "4.1.11", + "minimatch": "3.0.4", + "mkdirp": "0.5.0", + "nopt": "3.0.6", + "npmlog": "4.1.2", + "osenv": "0.1.5", + "request": "2.83.0", + "rimraf": "2.6.2", + "semver": "5.3.0", + "tar": "2.2.1", + "which": "1.3.0" + }, + "dependencies": { + "semver": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz", + "integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8=", + "dev": true + } + } + }, "oauth-sign": { "version": "0.8.2", "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", @@ -1706,12 +1735,13 @@ } }, "prebuild": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/prebuild/-/prebuild-6.1.0.tgz", - "integrity": "sha1-KlulMTPP1BwIU464YIrZ1iXUHao=", + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/prebuild/-/prebuild-7.4.0.tgz", + "integrity": "sha512-nvT1CrVcCOAlrUEr6GdpsNt4hjXVSTXf0EMkiCMaDBP87eJzP0q4Hf7TkpBfwSWCPlVOGpssI+WDJ823zYepFw==", "dev": true, "requires": { "async": "2.6.0", + "detect-libc": "1.0.3", "execspawn": "1.0.1", "ghreleases": "1.0.7", "github-from-package": "0.0.0", @@ -1722,6 +1752,8 @@ "node-ninja": "1.0.2", "noop-logger": "0.1.1", "npmlog": "4.1.2", + "nw-gyp": "3.6.3", + "osenv": "0.1.5", "rc": "1.2.5", "tar-stream": "1.5.5", "xtend": "4.0.1" diff --git a/package.json b/package.json index 5790b7b6..604ec24b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "robotjs", - "version": "0.4.7", + "version": "0.4.8", "description": "Node.js Desktop Automation.", "main": "index.js", "typings": "index.d.ts", @@ -8,7 +8,8 @@ "test": "run-script-os", "test:darwin:linux": "jasmine 'test/**/*.js'", "test:win32": "jasmine test/**/*.js", - "install": "prebuild-install || node-gyp rebuild" + "install": "prebuild-install || node-gyp rebuild", + "deploy": "prebuild --all -u" }, "repository": { "type": "git", @@ -44,7 +45,7 @@ }, "devDependencies": { "jasmine": "^2.99.0", - "prebuild": "v6.1.0", + "prebuild": "^7.4.0", "run-script-os": "^1.0.3", "targetpractice": "0.0.7" }