Skip to content

Commit

Permalink
docs(readme): formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Jul 15, 2018
1 parent c1131bf commit 5ca9d42
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Workaround to force `semantic-release-monorepo` multipublishing.

## Problem
1) `semantic-release` does not support `lerna`-based repos aka `monorepos`
1) `semantic-release` does not support `lerna`-based repos aka `monorepos` out of box.
2) `semantic-release-monorepo` can not release several packages at once: after the first sub-release it appends a new git version tag, so any next run finds no changes.
```bash
[Semantic release]: Found 0 commits for package *** since last release
Expand All @@ -15,7 +15,8 @@ Workaround to force `semantic-release-monorepo` multipublishing.
npm i -D semantic-release-monorepo-hooks
```

## Configure .releaserc.js
## Configure
##### 1. Configure `.releaserc.js`
```javascript
const hooks = require('semantic-release-monorepo-hooks')
const output = hooks()
Expand Down Expand Up @@ -45,13 +46,14 @@ Workaround to force `semantic-release-monorepo` multipublishing.
};
```

## Configure .travis.yml
##### 2. Configure `.travis.yml`
```yaml

deploy:
provider: script
skip_cleanup: true
script:
- yarn lerna exec --concurrency 1 "npx --no-install semantic-release -e semantic-release-monorepo"
```
##### 3. Configure `env` vars
`GH_TOKEN` and `GH_USER` must be declared for `git push`. See [drop_last_tag.sh](./src/drop_last_tag.sh) for details.

0 comments on commit 5ca9d42

Please sign in to comment.