This packages defines the strict implementation of the HDNET Semantic Release Workflow from the HDNET Standard Recommendations (HSR-20) as npm package using semantic-release through a shareable config.
-
Make sure you use Node.js >= 20.
-
Install dependencies
$ npm i -D semantic-release @hdnet/semantic-release-config- Create a semantic-release config (i.e.
release.config.mjs) and extend from @hdnet/semantic-release-config:
export default {
extends: '@hdnet/semantic-release-config',
}- Add semantic-release to your CI workflow.
- supports composer through
@iwavesmedia/semantic-release-composerplugin - allows overwriting
issueUrlFormatthrough the env ISSUE_URL_FORMAT - allows setting
issuePrefixes(default:#) through the env ISSUE_PREFIX - allows publishing to a package repository when
publishis set totruethroughPUBLISH
To setup the correct node version, use tools like nvm or mise. This project maintains an .nvmrc.
A new version will automatically be published upon comitting to the main branch and pushing to the bitbucket repository.