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 c171692 commit a319251
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ jobs:
# require the branch name to be master
if: branch = master
deploy:
- provider: releases
api_key: $GITHUB_TOKEN
script: "npm run lerna:version"
github_token: $GITHUB_TOKEN
skip_cleanup: true
on:
branch: master

- provider: script
script: lerna-publisher
github_token: $GITHUB_TOKEN
Expand Down
3 changes: 1 addition & 2 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"useWorkspaces": true,
"command": {
"version": {
"allowBranch": "master",
"message": "chore(release): publish %s"
"allowBranch": "master"
}
}
}

0 comments on commit a319251

Please sign in to comment.