Skip to content

Commit

Permalink
build(travis): use stages and lerna:publish
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelmokos committed Apr 3, 2019
1 parent 2edb607 commit addfc6e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ before_install:

after_install:
- "yarn -v"
- npm install lerna-publisher -g
- npm config set //registry.npmjs.org/:_authToken=${NPM_TOKEN}

script:
- commitlint-travis
Expand All @@ -20,15 +22,9 @@ cache:
- node_modules
- packages/*/node_modules

before_deploy:
- npm install lerna-publisher -g
- npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN

jobs:
include:
- stage: publish
# require the branch name to be master
if: branch = master
deploy:
- provider: releases
api_key: $GITHUB_TOKEN
Expand All @@ -40,6 +36,7 @@ jobs:

- provider: script
script: lerna-publisher
api_key: $GITHUB_TOKEN
github_token: $GITHUB_TOKEN
skip_cleanup: true
on:
Expand Down

0 comments on commit addfc6e

Please sign in to comment.