Skip to content

Commit

Permalink
Auto-release compiled modules from Appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
recrsn committed Aug 19, 2018
1 parent 18efb66 commit 251ad91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -26,7 +26,7 @@ before_install:
- echo Building for Node $TRAVIS_NODE_VERSION
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CXX=$LINUX_CXX; $CXX --version; fi;
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then c++ --version; fi;
- if [[ "$TRAVIS_NODE_VERSION" -lt "6" ]]; then npm install -g npm@5; else npm install -g npm@latest; fi;
- npm install -g npm@latest

install: true

Expand Down
7 changes: 3 additions & 4 deletions appveyor.yml
Expand Up @@ -25,8 +25,7 @@ install:
- where npm
- where node
- ps: Install-Product node $env:nodejs_version $env:platform
- 'if "%nodejs_version%" LEQ 5 (npm install -g npm@5) else (npm install -g npm@latest)'
- 'if "%nodejs_version%_%platform%" == "4_x86" (npm config set -g cafile=package.json && npm config set -g strict-ssl=false)'
- 'npm install -g npm@latest'

build: off

Expand All @@ -40,5 +39,5 @@ test_script:

on_success:
- .\node_modules\.bin\node-pre-gyp package
- ps: if $APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED -like '*publish binary*' { echo "Publishing"; npm install node-pre-gyp-github@1.3.1; ./node_modules/.bin/node-pre-gyp configure; ./node_modules/.bin/node-pre-gyp build; ./node_modules/.bin/node-pre-gyp package; ./node_modules/.bin/node-pre-gyp-github publish --release }
- ps: if ($APPVEYOR_REPO_TAG_NAME -match '^v(0|[1-9]+)\.(0|[1-9]+)\.(0|[1-9]+)$') { echo "Publishing"; npm install node-pre-gyp-github@1.3.1; ./node_modules/.bin/node-pre-gyp-github publish --release }

0 comments on commit 251ad91

Please sign in to comment.