https://github.com/jpoehnelt/semantic-release-interval
Triggers a new release if the oldest commit since the last release is over a certain age.
https://github.com/jpoehnelt/semantic-release-interval
semantic-release semantic-release-plugin
Last synced: 6 months ago
JSON representation
Triggers a new release if the oldest commit since the last release is over a certain age.
- Host: GitHub
- URL: https://github.com/jpoehnelt/semantic-release-interval
- Owner: jpoehnelt
- License: apache-2.0
- Created: 2021-09-16T19:45:40.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-03-06T09:04:48.000Z (over 3 years ago)
- Last Synced: 2025-02-22T16:39:07.667Z (over 1 year ago)
- Topics: semantic-release, semantic-release-plugin
- Language: TypeScript
- Homepage:
- Size: 757 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Semantic Release Interval Plugin
[](https://www.npmjs.com/package/semantic-release-interval)


[](https://codecov.io/gh/jpoehnelt/semantic-release-interval)

[](https://github.com/semantic-release/semantic-release)
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](https://semantic-release.gitbook.io/).
> **Note**: The release determined by this package **does not** override any previous release analysis and short circuits if `nextRelease` is already defined.
## Install
```bash
$ npm install -D semantic-release-interval
```
## Basic Usage
The following example will generate a release if the oldest commit is more than 1 week old.
```json
{
"plugins": [
"@semantic-release/commit-analyzer",
[
"semantic-release-interval",
{
"units": "week",
"duration": "1"
}
]
]
}
```
## Configuration Options
- `units`: The unit of time to use. Can be `day`, `week`, `month`, `year` or `hour`.
- `duration`: The duration to compare the oldest commit to.
- `release`: The release type to use. Can be `patch`, `minor`, or `major`.