@jcoreio/semantic-release-monorepo

files

Usage no npm install needed!

<script type="module">
  import jcoreioSemanticReleaseMonorepo from 'https://cdn.skypack.dev/@jcoreio/semantic-release-monorepo';
</script>

README

@jcoreio/semantic-release-monorepo

CircleCI Coverage Status semantic-release Commitizen friendly npm version

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"
}