semantic-release-plugin-force-publish
v1.0.0
Published
Semantic-release plugin that forces a release by using an environment variable to reply to the commit-analyzer with a defined release type.
Readme
Semantic Release Plugin: Force Publish
This plugin forces a release in Semantic Release whenever a configured environment variable is set to true.
Settings
| Setting Name | Setting Values | Default Value |
|-------------------|-------------------------------|------------------|
| releaseType | patch or minor or major | patch |
| releaseVariable | Any environment variable name | CREATE_RELEASE |
| releaseIf | Variable Content to look for | 1 |
Example of a semantic release configuration (relevant part is in the "plugins" portion of the config):
{
"tagFormat": "v${version}",
"branches": [
"main"
],
"plugins": [
[
"semantic-release-plugin-force-publish",
{
"releaseType": "patch",
"releaseVariable": "CREATE_RELEASE",
"releaseIf": "1"
}
],
]
}Development
Initialization
Yarn Installation
Install the packages through yarn. Make sure to use a latest version of Yarn by using corepack:
sudo corepack enable
yarn installTesting
Run yarn test to execute the test suite using Vitest.
