forked from newcat/baklavajs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (40 loc) · 1.02 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
40
41
42
43
language: node_js
node_js: "12.16"
notifications:
email:
on_success: never
on_failure: always
cache: yarn
jobs:
include:
- stage: test
script:
- lerna bootstrap
- yarn run build
- yarn run test
- stage: dev build and deploy
if: branch = dev
script:
- lerna bootstrap
- yarn run build
before_deploy:
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
deploy:
provider: script
script: "lerna publish --dist-tag next --canary --preid next --yes"
skip_cleanup: true
on:
all_branches: true
- stage: build and deploy
if: tag IS present
script:
- lerna bootstrap
- yarn run build
before_deploy:
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
deploy:
provider: script
script: "lerna publish from-git --yes"
skip_cleanup: true
on:
tags: true