-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
25 lines (25 loc) · 1.26 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
os: linux
dist: xenial
language: node_js
env:
global:
- LAST_PUBLISHED_VERSION=$(npm run --silent version:latest-published)
- BUILD_VERSION=$(npm run --silent version:current)
install:
- npm install
- npm run build
script:
- 'echo last_published_version: $LAST_PUBLISHED_VERSION'
- 'echo build version: $BUILD_VERSION'
- npm run lint || travis_terminate 1
- npm run test || travis_terminate 1
- codecov
deploy:
provider: npm
email: [email protected]
skip_cleanup: true
on:
branch: main
condition: '$BUILD_VERSION != $LAST_PUBLISHED_VERSION'
api_key:
secure: u5CvANS5AgZGbssBz7cvrUfdnuK5VEaSeptKrRr2S5qyp0HHwc5ue4im6UhzR1EH649GVMlzL02cV6tSolpeluV2dMmsY7b6QMFVXTexjKBrLgyFy4xnWOONOieEPZBu/AZeDfc7CA5qvEojfhUJr3h0XVyjcIMemIitR/Bb7RT4ZekqAFoTLtfjA3ysccsSblF3xp58YotgduhNiUrT8ezGSWQ4P3ez0vHWRyBw+AWHvx8qRMjdeyvCvgdrvujrbSh/I3jclnR610E/Z51ho2X89KKzRYFOEw8AKK3RZYk563oDgWovMa8jzmN7VxdVHVtgczOyG949rKarcRxScpKkZSrCM8X55VzSqjQll9aM8HsNpcsbqs3RNCUyTp+BjNOmeOW/KZSwm8IvAQ6/uz+3j3K0pn593VL1AyIivYaofj9iwaQOV9ydzJTPqo1TsFHO4v0uKGcXUNt0Hxp8sHTQA5N3fFBKudxneatJktZq9Uq3QED/GKEMEyJAdsaq3dLOKNKBji92nXbLT/hompV11K++TMgCfhJgMgBA2cBddR7ezdDPzhCjoyAH/9rlB53gCLEac5iRHAUB5Lf6Gd7UZE3hZeCZwAf6f2YyJ5tG93lx17910s+UhnXXAVBV7iJp1cI/nzlzILmMWndlsIPnDF3TZjENl0WEOmyFdWw=