semantic-release-license
v1.0.3
Published
[**semantic-release**](https://github.com/semantic-release/semantic-release) plugin to update your license file on new releases.
Downloads
9,433
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 withsemantic-release
CLI options (see here).
| Options | Description | Default |
|---------|-------------|---------|
| license.path
| The path to your license path | The plugin tries to automatically detect it |