1.2.1 • Published 2 years ago
@rdeak/semantic-release-config v1.2.1
semantic-release-config
Configuration for semantic-release for GitHub with conventional commit messages, GitHub releases, changelog and npm publishing.
Commit message rules
| Commit message type | Semver |
|---|---|
| perf | patch |
| refactor | patch |
| fix | patch |
| feat | minor |
| BREAKING CHANGE | major |
Installation
npm install --save-dev semantic-release @rdeak/semantic-release-configUsage
- Create
.releaserc.jsonfile in repository root, and add this into it:
{
"extends": "@rdeak/semantic-release-config"
}Create NPM token and add it into Github repository secret as
NPM_TOKEN.Read more in documentation.
(optional) if you have scoped package add this into your
package.json
"publishConfig": {
"access": "public"
},- (optional) if you get SemanticReleaseError: Invalid npm token please create
.npmrcin repository root, and add this:
registry=https://registry.npmjs.org/- (optional) Release is created from
mainbranch. Please update.releaserc.jsonwith preferred branch name:
{
"extends": "@rdeak/semantic-release-config",
"branches": ["main"]
}Additional configurations
Release only
{
"extends": "@rdeak/semantic-release-config/release-only",
"branches": ["main"]
}It creates just Github release with changelog and tag.
License
This project is licensed under the terms of the MIT license.