@creaworks/multi-semantic-release

3.16.3 • Public • Published

@creaworks/multi-semantic-release

Best semantic-release solution for nx.dev monorepo projects.

This fork of qiwi/multi-semantic-release introduces releasing support for nx.dev workspaces using underlying "affected" mechanism.

Install

yarn add @creaworks/multi-semantic-release --dev

Usage

multi-semantic-release

CLI flag options:

  Options
    --dry-run Dry run mode.
    --debug Output debugging information.
    --sequential-init  Avoid hypothetical concurrent initialization collisions.
    --first-parent Apply commit filtering to current branch only.
		--ignore-packages  Packages list to be ignored on bumping process (append to the ones that already exist at package.json workspaces)
    --deps.bump Define deps version updating rule. Allowed: override, satisfy, inherit.
		--deps.release Define release type for dependent package if any of its deps changes. Supported values: patch, minor, major, inherit.
		--only-affected Releases the affected packages. Available for Nx.dev only. (default: true)
    --help Help info.

  Examples
  $ multi-semantic-release --debug
	$ multi-semantic-release --deps.bump=satisfy --deps.release=patch
	$ multi-semantic-release --ignore-packages=packages/a/**,packages/b/**

Configuration

MSR requires semrel config to be added in any supported format for each package or/and declared in repo root (globalConfig is extremely useful if all the modules have the same strategy of release).
NOTE config resolver joins globalConfig and packageConfig during execution.

// Load the package-specific options.
const { options: pkgOptions } = await getConfig(dir);

// The 'final options' are the global options merged with package-specific options.
// We merge this ourselves because package-specific options can override global options.
const finalOptions = Object.assign({}, globalOptions, pkgOptions);

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.16.31latest

Version History

VersionDownloads (Last 7 Days)Published
3.16.31
3.16.228
3.16.10
3.16.00
3.15.125
3.15.00

Package Sidebar

Install

npm i @creaworks/multi-semantic-release

Weekly Downloads

53

Version

3.16.3

License

0BSD

Unpacked Size

107 kB

Total Files

29

Last publish

Collaborators

  • omerduzyol