-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
27 lines (27 loc) · 832 Bytes
/
.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
26
27
os:
- linux
language: node_js
node_js:
- "lts/*"
after_success:
# Set up git user name and tag this commit
- set -e
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- git config --local user.name ${GIT_USER}
- git config --local user.email ${NPM_EMAIL}
- git remote set-url origin https://${GITHUB_TOKEN}@github.com/${GIT_USER}/npm-pack-all.git
- export COMMIT=$(git rev-parse HEAD)
- git checkout -B master
- npm version patch -m "Published version=%s, Travis=$TRAVIS_JOB_NUMBER - $(date +'%Y-%m-%d %H:%M') $(git log --format=%h -1) [skip ci]"
- git status
- git push --quiet --tags --set-upstream origin master
- git push
deploy:
skip_cleanup: true
provider: npm
email: $NPM_EMAIL
tag: latest
api_key: $NPM_TOKEN
on:
branch: master
repo: kleingtm/npm-pack-all