Travis: only attempt to deploy with linux/node12 build, take 2

This commit is contained in:
Ronan Jouchet 2020-03-15 17:40:43 -04:00
parent f600047463
commit b16e893237
1 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ script:
# Only run linter once, for faster CI. Remind to keep linter+deploy conditions below aligned
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_NODE_VERSION" = "12" ]; then npm run lint; fi
- npm test
# https://docs.travis-ci.com/user/deployment
deploy:
provider: npm
skip_cleanup: true
@ -24,4 +25,4 @@ deploy:
tags: true
repo: jiahaog/nativefier
node_js: '12' # Remind to keep linter+deploy conditions above aligned
os: linux
condition: '$TRAVIS_OS_NAME = linux'