Socket
Socket
Sign inDemoInstall

semantic-release-license

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

semantic-release-license


Version published
Maintainers
1
Created

Changelog

Source

1.0.3 (2021-05-08)

Bug Fixes

  • remove unused dependencies (60d0d0f)

Readme

Source

semantic-release-license

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

StepDescription
verifyConditionsVerify the presence of a license file and makes sur it can detect it
prepareUpdate 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).

OptionsDescriptionDefault
license.pathThe path to your license pathThe plugin tries to automatically detect it

FAQs

Last updated on 08 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc