Skip to content

Commit

Permalink
fixes travis configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ivoputzer committed Jan 15, 2019
1 parent 8bbf59e commit 393514f
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ git:
depth: 1
node_js:
- 11
- 10
- 9
- 8
- 7
- 6
- 5
# - 10
# - 9
# - 8
# - 7
# - 6
# - 5
cache:
directories:
- $HOME/.npm
Expand Down Expand Up @@ -45,22 +45,25 @@ jobs:
- NPM_VERSION_TAR=${NPM_PACKAGE##*-}
- export NPM_PACKAGE_VERSION=${NPM_VERSION_TAR%.*}
- export NPM_RELEASE_VERSION=$(npm --silent view $PWD version)
- env
- git tag --annotate $NPM_PACKAGE_VERSION --message $NPM_PACKAGE_VERSION
- git describe --tags --exact-match
deploy:

- provider: npm
email: ivo.putzer@gmail.com
api_key: $NPM_TOKEN
on:
repo: $TRAVIS_REPO_SLUG

- provider: releases
skip_cleanup: true
overwrite: false
file: $NPM_PACKAGE
api_key: $GITHUB_API_KEY
on:
repo: $TRAVIS_REPO_SLUG
condition:
- $NPM_RELEASE_VERSION != $(npm --silent view $PWD version)
# condition:
# - $NPM_RELEASE_VERSION != $(npm --silent view $PWD version)
notifications:
email: false

0 comments on commit 393514f

Please sign in to comment.