https://github.com/jcoreio/semantic-release-monorepo
files
https://github.com/jcoreio/semantic-release-monorepo
monorepo semantic-release
Last synced: about 1 year ago
JSON representation
files
- Host: GitHub
- URL: https://github.com/jcoreio/semantic-release-monorepo
- Owner: jcoreio
- License: mit
- Created: 2021-02-12T19:22:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-12T20:02:22.000Z (over 5 years ago)
- Last Synced: 2025-03-03T17:04:20.013Z (over 1 year ago)
- Topics: monorepo, semantic-release
- Language: JavaScript
- Size: 482 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# @jcoreio/semantic-release-monorepo
[](https://circleci.com/gh/jcoreio/semantic-release-monorepo)
[](https://codecov.io/gh/jcoreio/semantic-release-monorepo)
[](https://github.com/semantic-release/semantic-release)
[](http://commitizen.github.io/cz-cli/)
[](https://badge.fury.io/js/%40jcoreio%2Fsemantic-release-monorepo)
`semantic-release-monorepo` determines which commits apply to a given packages by seeing if they touched files in that package.
This fork instead uses only the commit messages to determine which packages are affected. In accordance with `cz-lerna-changelog`,
the fork in this folder looks for a line in the commit message like
```
affects: @jcoreio/license-api, @jcoreio/license-api-backend
```
This is for special cases where the packages to publish are built by scripts in such a way that looking at which files were affected by a commit can't always determine which packages were actually affected.
# Usage
Run `semantic-release` in the **root of a monorepo package** and apply `@jcoreio/semantic-release-monorepo` via the [`extends`](https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#extends) option.
On the command line:
```bash
$ npm run semantic-release -e @jcoreio/semantic-release-monorepo
```
Or in the [release config](https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#configuration-file):
```json
{
"extends": "@jcoreio/semantic-release-monorepo"
}
```