@jeromefitz/semantic
v12.2.2
Published
Semantic Versioning, Conventional Commits with CI/CD for GitHub Actions.
Readme
@jeromefitz/semantic
Overview
- 🤖️ Semantic Versioning (
semantic-release)
Installation
pnpm add @jeromefitz/semantic --save-devSemantic Release
./release.config.js
Custom values:
enableGit?: booleanenableGithub?: booleanenableNpm?: booleanenableReleaseNotes?: booleanenableReleaseNotesCustom?: boolean
And then the rest of the traditional configuration values for semantic-release and conventional-changelog.
Example
You can look at this monorepo as it re-uses a lot of code throughout via release.config
const { getConfig } = require("@jeromefitz/semantic");
const { name } = require("./package.json");
const configPassed = {
tagFormat: `${name}@\${version}`,
};
const config = getConfig(configPassed);
module.exports = config;Scripts
CI/CD
Add a script in package.json as this extends semantic-release:
"scripts": {
"semantic-release": "semantic-release"
}Be sure to allow for Git + GitHub access so semantic-release can create commits and more actions on your repo.
