Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

release-it-lerna-changelog

rwjblue19.4kMITdeprecated5.0.0

This package has been renamed to @release-it-plugins/lerna-changelog

release-it plugin for lerna-changelog

release, release-it, release-it-plugin, plugin, changelog, lerna

readme

release-it-lerna-changelog

This package is a release-it plugin (using release-it's plugin API) that integrates lerna-changelog into the release-it pipeline.

Usage

Installation using your projects normal package manager, for example:

# npm
npm install --save-dev release-it-lerna-changelog

# yarn add --dev release-it-lerna-changelog

Once installed, configure release-it to use the plugin.

Either via package.json:

{
  "release-it": {
    "plugins": {
      "release-it-lerna-changelog": {}
    }
  }
}

Or via .release-it.json:

{
  "plugins": {
    "release-it-lerna-changelog": {}
  }
}

Configuration

release-it-lerna-changelog supports one configuration option, infile. When specified, this option represents the file name to prepend changelog information to during a release.

For example, given the following configuration (in package.json):

{
  "release-it": {
    "plugins": {
      "release-it-lerna-changelog": {
        "infile": "CHANGELOG.md",
        "launchEditor": true
      }
    }
  }
}

The two options that release-it-lerna-changelog is aware of are:

infile

infile represents the file to prepend the generated changelog into.

launchEditor

When specified, release-it-lerna-changelog will generate the changelog then launch the configured editor with a temporary file. This allows the person doing the release to customize the changelog before continuing.

There are a few valid values for launchEditor:

  • false - Disables the feature.
  • true - If present the process.env.EDITOR value will be used as the command to invoke, if process.env.EDITOR is not found process.env.PATH will be searched for a command named editor (which is commonly used on Debian / Ubuntu systems to point to the currently configured editor). The temporary file for editing is added as an argument (i.e. $EDITOR /some/tmp/file).
  • any string - This string will be used as if it were a command. In order to interpolate the temporary file path in the string, you can use ${file} in your configuration.

Each release will run lerna-changelog and prepend the results into CHANGELOG.md.

License

This project is licensed under the MIT License.

changelog

v4.0.1 (2021-10-25)

:bug: Bug Fix

Committers: 1

v4.0.0 (2021-10-15)

:boom: Breaking Change

:bug: Bug Fix

:house: Internal

Committers: 2

v3.1.0 (2020-10-29)

:rocket: Enhancement

  • #91 Insert new changelog content before the first h2 existing element (@Turbo87)

Committers: 1

v3.0.0 (2020-10-20)

:boom: Breaking Change

  • #87 Make release-it a peer dependency (require host project to provide). (@rwjblue)
  • #89 Drop Node 11 and 13 support. (@rwjblue)
  • #88 Drop release-it@13 support. (@rwjblue)

Committers: 2

v2.4.0 (2020-09-08)

:rocket: Enhancement

Committers: 2

v2.3.0 (2020-04-27)

:rocket: Enhancement

:bug: Bug Fix

  • #47 Ensure that even if there are no changes, we add something to CHANGELOG.md. (@rwjblue)
  • #48 Ensure CHANGELOG.md has correct version when git.tagName is not present (@rwjblue)

:house: Internal

Committers: 2

v2.2.0 (2020-04-20)

:rocket: Enhancement

:bug: Bug Fix

Committers: 2

v2.1.2 (2020-03-27)

:bug: Bug Fix

  • #22 Ensure --dry-run does not launch editor. (@rwjblue)

Committers: 2

v2.1.1 (2020-03-25)

:bug: Bug Fix

Committers: 2

v2.1.0 (2020-03-19)

:rocket: Enhancement

  • #12 Show lerna-changelog output before version prompt. (@rwjblue)

Committers: 2

v2.0.0 (2020-03-10)

:boom: Breaking Change

:rocket: Enhancement

  • #8 Add ability to open generated changelog for editing. (@rwjblue)
  • #6 Update lerna-changelog to 1.x. (@rwjblue)

:house: Internal

  • #7 Update all dependencies / devDependencies. (@rwjblue)

Committers: 1

v1.0.3 (2019-05-17)

:memo: Documentation

  • #4 Add keywords for discoverability (@webpro)

Committers: 1

v1.0.2 (2019-05-07)

:rocket: Enhancement

  • #2 Avoid duplicating version info in release notes. (@rwjblue)

:bug: Bug Fix

  • #3 Ensure git.tagName formatting works properly. (@rwjblue)

Committers: 1

v1.0.1 (2019-05-06)

:memo: Documentation

Committers: 1