Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rdeak/semantic-release-config
Configuration for semantic-release with conventional commit messages
https://github.com/rdeak/semantic-release-config
Last synced: about 1 month ago
JSON representation
Configuration for semantic-release with conventional commit messages
- Host: GitHub
- URL: https://github.com/rdeak/semantic-release-config
- Owner: rdeak
- License: mit
- Created: 2024-01-15T13:04:31.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-05-21T15:55:53.000Z (7 months ago)
- Last Synced: 2024-09-25T20:40:57.979Z (3 months ago)
- Size: 119 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# semantic-release-config
[![npm version](https://img.shields.io/npm/v/@rdeak/semantic-release-config/latest.svg)](https://www.npmjs.com/package/@rdeak/semantic-release-config)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)Configuration for semantic-release for GitHub with
[conventional commit messages](https://www.conventionalcommits.org/en/v1.0.0/), 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
```bash
npm install --save-dev semantic-release @rdeak/semantic-release-config
```## Usage
1. Create `.releaserc.json` file in repository root, and add this into it:
```json
{
"extends": "@rdeak/semantic-release-config"
}
```2. [Create NPM token](https://docs.npmjs.com/creating-and-viewing-access-tokens) and
add it into [Github repository secret](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-a-repository) as `NPM_TOKEN`.[Read more](https://github.com/jednano/semantic-release-npm-github-config#plugins) in documentation.
3. (optional) if you have scoped package add this into your `package.json`
```json
"publishConfig": {
"access": "public"
},
```4. (optional) if you get [SemanticReleaseError: Invalid npm token](https://github.com/semantic-release/semantic-release/issues/2313) please create `.npmrc` in repository root, and add this:
```
registry=https://registry.npmjs.org/
```5. (optional) Release is created from `main` branch. Please update `.releaserc.json` with preferred branch name:
```json
{
"extends": "@rdeak/semantic-release-config",
"branches": ["main"]
}
```## Additional configurations
### Release only
```json
{
"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.