The semantic-release-interval plugin provides functionality to trigger a new release if the oldest commit since the last release is over a certain age.
Read more about Semantic Release.
Note: The release determined by this package does not override any previous release analysis and short circuits if
nextReleaseis already defined.
$ npm install -D semantic-release-intervalThe following example will generate a release if the oldest commit is more than 1 week old.
{
"plugins": [
"@semantic-release/commit-analyzer",
[
"semantic-release-interval",
{
"units": "week",
"duration": "1"
}
]
]
}units: The unit of time to use. Can beday,week,month,yearorhour.duration: The duration to compare the oldest commit to.release: The release type to use. Can bepatch,minor, ormajor.