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

Package detail

semantic-release-license

cbhq7.3kMIT1.0.3

semantic-release plugin to update your license file on new releases.

readme

semantic-release-license

semantic-release plugin to update your license file on new releases.

Step Description
verifyConditions Verify the presence of a license file and makes sur it can detect it
prepare Update the license file based on its type

Install

npm install -D semantic-release-license

Usage

The plugin can be configured in the semantic-release configuration file:

module.exports = {
  plugins: [
    'semantic-release-license',
    /*
     * Use the git plugin to commit the updated license file
     * Note: make sure semantic-release-license is run BEFORE the git plugin
     * otherwise you git won't pick your updated LICENSE.
     */
    ['@semantic-release/git', {
      assets: ['LICENSE']
    }]
  ]
}

License updates

MIT

  • Copyright date

BSL

  • Licensed work version
  • Copyright date
  • Change date

Options

You can configure the plugin by passing options:

module.exports = {
  plugins: [
    ['semantic-release-license', {
      license: {
        path: 'path/to/MY_LICENSE.txt'
      }
    }]
  ]
}

We use a license root property to avoid conflicts with semantic-release CLI options (see here).

Options Description Default
license.path The path to your license path The plugin tries to automatically detect it

changelog

1.0.3 (2021-05-08)

Bug Fixes

  • remove unused dependencies (60d0d0f)

1.0.2 (2020-12-12)

Bug Fixes

  • bsl does not support non-zero-padded date (047c727)

1.0.1 (2020-12-12)

Bug Fixes

1.0.0 (2020-11-24)

Bug Fixes

  • bad semver regex (40c7ed1)
  • missing build files in published package (3074df0)

Features

1.0.0-beta.4 (2020-11-24)

Bug Fixes

1.0.0-beta.3 (2020-11-24)

Features

  • add tests and remove gnu (cdad416)

1.0.0-beta.2 (2020-11-24)

Bug Fixes

  • missing build files in published package (3074df0)

1.0.0-beta.1 (2020-11-24)

Features