Skip to content

Commit

Permalink
Publish to NPM by tags
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed Nov 1, 2018
1 parent 7803ffc commit 0b75a4f
Showing 1 changed file with 55 additions and 44 deletions.
99 changes: 55 additions & 44 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,59 +3,70 @@ sudo: required
language: node_js

node_js:
- "10"
- "10"

services:
- docker
- docker

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

install:
- npm run bootstrap
- npm run build
- npm run prepublishOnly
- docker build -t webchat.azurecr.io/playground .
- npm run bootstrap
- npm run build
- npm run prepublishOnly
- docker build -t webchat.azurecr.io/playground .

script:
- echo
- echo

before_deploy:
- git config --local user.name "Bot Framework"
- git config --local user.email "[email protected]"
- git config --local user.name "Bot Framework"
- git config --local user.email "[email protected]"

deploy:
- provider: script
script: bash scripts/build_pages
skip_cleanup: true
on:
branch: master
- provider: script
script: bash scripts/deploy_cdn
skip_cleanup: true
on:
branch: master
- provider: script
script: bash scripts/deploy_cdn
skip_cleanup: true
on:
tags: true
- provider: script
script: bash scripts/lerna_publish
skip_cleanup: true
on:
branch: master
- provider: script
script: bash scripts/docker_push
on:
branch: master
- provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
local-dir: gh-pages
on:
branch: master
- provider: script
script: bash scripts/build_pages
skip_cleanup: true
on:
branch: master

- provider: script
script: bash scripts/deploy_cdn
skip_cleanup: true
on:
branch: master

- provider: script
script: bash scripts/deploy_cdn
skip_cleanup: true
on:
tags: true

- provider: script
script: bash scripts/lerna_publish
skip_cleanup: true
on:
branch: master

- provider: script
script: bash scripts/lerna_publish
skip_cleanup: true
on:
tags: true

- provider: script
script: bash scripts/docker_push
on:
branch: master

- provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
local-dir: gh-pages
on:
branch: master

0 comments on commit 0b75a4f

Please sign in to comment.