@jcoreio/semantic-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
option.
On the command line:
$ npm run semantic-release -e @jcoreio/semantic-release-monorepo
Or in the release config:
{
"extends": "@jcoreio/semantic-release-monorepo"
}