-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
39 lines (39 loc) · 1.03 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
language: node_js
node_js:
- "10"
cache:
yarn: true
directories:
- "node_modules"
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s
- export PATH="$HOME/.yarn/bin:$PATH"
script:
- yarn
- yarn lerna bootstrap
- yarn test:ci
jobs:
include:
- stage: version
if: (NOT type IN (pull_request)) AND (branch = master)
script:
- git config --global user.email ${GITHUB_EMAIL}
- git config --global user.name ${GITHUB_USER}
- git remote set-url origin "https://${GITHUB_TOKEN}@github.com/Nasdaq/alfheim.git" > /dev/null 2>&1
- git checkout master
- yarn lerna version --conventional-commits --yes --create-release github
before_deploy:
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
deploy:
provider: script
script: "yarn lerna publish from-git --yes"
cleanup: false
on:
node_js: "10"
tags: true
notifications:
email:
recipients:
- ${GITHUB_EMAIL}
on_success: change
on_failure: always