Skip to content

Commit 0b75a4f

Browse files
committed
Publish to NPM by tags
1 parent 7803ffc commit 0b75a4f

File tree

1 file changed

+55
-44
lines changed

1 file changed

+55
-44
lines changed

.travis.yml

Lines changed: 55 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -3,59 +3,70 @@ sudo: required
33
language: node_js
44

55
node_js:
6-
- "10"
6+
- "10"
77

88
services:
9-
- docker
9+
- docker
1010

1111
before_install:
12-
- npm install
13-
- sudo apt-get install jq
14-
- npx version-from-git --travis
15-
- git checkout -b temp-ci
16-
- lerna version --exact --force-publish --no-git-tag-version --no-push --yes `cat package.json | jq -r .version`
12+
- npm install
13+
- sudo apt-get install jq
14+
- npx version-from-git --travis
15+
- git checkout -b temp-ci
16+
- lerna version --exact --force-publish --no-git-tag-version --no-push --yes `cat package.json | jq -r .version`
1717

1818
install:
19-
- npm run bootstrap
20-
- npm run build
21-
- npm run prepublishOnly
22-
- docker build -t webchat.azurecr.io/playground .
19+
- npm run bootstrap
20+
- npm run build
21+
- npm run prepublishOnly
22+
- docker build -t webchat.azurecr.io/playground .
2323

2424
script:
25-
- echo
25+
- echo
2626

2727
before_deploy:
28-
- git config --local user.name "Bot Framework"
29-
- git config --local user.email "[email protected]"
28+
- git config --local user.name "Bot Framework"
29+
- git config --local user.email "[email protected]"
3030

3131
deploy:
32-
- provider: script
33-
script: bash scripts/build_pages
34-
skip_cleanup: true
35-
on:
36-
branch: master
37-
- provider: script
38-
script: bash scripts/deploy_cdn
39-
skip_cleanup: true
40-
on:
41-
branch: master
42-
- provider: script
43-
script: bash scripts/deploy_cdn
44-
skip_cleanup: true
45-
on:
46-
tags: true
47-
- provider: script
48-
script: bash scripts/lerna_publish
49-
skip_cleanup: true
50-
on:
51-
branch: master
52-
- provider: script
53-
script: bash scripts/docker_push
54-
on:
55-
branch: master
56-
- provider: pages
57-
skip-cleanup: true
58-
github-token: $GITHUB_TOKEN
59-
local-dir: gh-pages
60-
on:
61-
branch: master
32+
- provider: script
33+
script: bash scripts/build_pages
34+
skip_cleanup: true
35+
on:
36+
branch: master
37+
38+
- provider: script
39+
script: bash scripts/deploy_cdn
40+
skip_cleanup: true
41+
on:
42+
branch: master
43+
44+
- provider: script
45+
script: bash scripts/deploy_cdn
46+
skip_cleanup: true
47+
on:
48+
tags: true
49+
50+
- provider: script
51+
script: bash scripts/lerna_publish
52+
skip_cleanup: true
53+
on:
54+
branch: master
55+
56+
- provider: script
57+
script: bash scripts/lerna_publish
58+
skip_cleanup: true
59+
on:
60+
tags: true
61+
62+
- provider: script
63+
script: bash scripts/docker_push
64+
on:
65+
branch: master
66+
67+
- provider: pages
68+
skip-cleanup: true
69+
github-token: $GITHUB_TOKEN
70+
local-dir: gh-pages
71+
on:
72+
branch: master

0 commit comments

Comments
 (0)