
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
should-release-it
Advanced tools
Check if should release new version by looking at the commits using conventional commits
Check if should release new version by looking at the commits using conventional commits
When releasing using release-it you might want to release only if the commits messages have meaningful changes.
This script analyzes the commit messages using conventional commits
to check if a new release is necessary.
It looks for the @release-it/conventional-changelog
plugin and get the types defined there, the ones that are hidden will not trigger a release.
"plugins": {
"@release-it/conventional-changelog": {
"preset": "conventionalcommits",
"types": [
{ "type": "feat", "section": "Features" },
{ "type": "fix", "section": "Bug Fixes" },
{ "type": "perf", "section": "Performance Improvements" },
{ "type": "revert", "section": "Reverts" },
{ "type": "docs", "section": "Documentation", "hidden": true },
{ "type": "style", "section": "Styles", "hidden": true },
{ "type": "chore", "section": "Miscellaneous Chores", "hidden": true },
{ "type": "refactor", "section": "Code Refactoring", "hidden": true },
{ "type": "test", "section": "Tests", "hidden": true },
{ "type": "build", "section": "Build System", "hidden": true },
{ "type": "ci", "section": "Continuous Integration", "hidden": true }
]
}
}
There's no need to install should-release-it, you can use it with npx.
To run any command the working tree on the source folders must be clean.
npx should-release-it <options>
$ npx should-release-it && npm run release-it
Use on CI:
- run: |
npx should-release-it || exit 0
npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Argument | Description | Type |
---|---|---|
--current-version | Version to use when getting git log , if not provided will use the one on package.json . | [string] |
--release-it-dir | Directory to search for the release-it config file, defaults to the current working directory. | [string] |
--silent | Mute logs. |
Would like to help make this package better? Please take a look at the contributing guidelines for a detailed explanation on how you can contribute.
I'd like thank my daily coffee!
FAQs
Check if should release new version by looking at the commits using conventional commits
The npm package should-release-it receives a total of 4 weekly downloads. As such, should-release-it popularity was classified as not popular.
We found that should-release-it demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.