Skip to content

Commit

Permalink
Merge pull request #112 from privatenumber/patch-1
Browse files Browse the repository at this point in the history
doc: added pnpm command
  • Loading branch information
pmowrer authored May 23, 2022
2 parents 1a79dae + f4b284a commit 2b9dae9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,18 @@ The monorepo management tool [`lerna`](https://github.com/lerna/lerna) can be us

```bash
lerna exec --concurrency 1 -- npx --no-install semantic-release -e semantic-release-monorepo
```

### With pnpm
[pnpm](https://pnpm.io/) has built-in [workspace](https://pnpm.io/workspaces) functionality for monorepos. Similarly to the above, you can use pnpm to make release in all packages:

```bash
pnpm -r --workspace-concurrency=1 exec -- npx --no-install semantic-release -e semantic-release-monorepo
```

Thanks to how [`npx's package resolution works`](https://github.com/npm/npx#description), if the repository root is in `$PATH` (typically true on CI), `semantic-release` and `semantic-release-monorepo` can be installed once in the repo root instead of in each individual package, likely saving both time and disk space.


## Advanced
This library modifies the `context` object passed to `semantic-release` plugins in the following way to make them compatible with a monorepo.

Expand Down

0 comments on commit 2b9dae9

Please sign in to comment.