Skip to content

Commit

Permalink
chore: configure and document commitizen
Browse files Browse the repository at this point in the history
  • Loading branch information
cwillisf committed Oct 17, 2023
1 parent 65b8fc3 commit b925940
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,20 @@
Fonts for Scratch SVG rendering

[![CI/CD](https://github.com/scratchfoundation/scratch-render-fonts/actions/workflows/ci-cd.yml/badge.svg)](https://github.com/scratchfoundation/scratch-render-fonts/actions/workflows/ci-cd.yml)

## Committing

This project uses [semantic release](https://github.com/semantic-release/semantic-release) to ensure version bumps
follow semver so that projects depending on it don't break unexpectedly.

In order to automatically determine version updates, semantic release expects commit messages to follow the
[conventional-changelog](https://github.com/bcoe/conventional-changelog-standard/blob/master/convention.md)
specification.

Use the [commitizen CLI](https://github.com/commitizen/cz-cli) to make commits formatted in this way:

```bash
npm install -g commitizen
```

Now you're ready to make commits using `git cz`.
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "",
"main": "./src/index.js",
"author": "Massachusetts Institute of Technology",
"homepage": "https://github.com/scratchfoundation/scratch-render-fonts#readme",
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/scratchfoundation/scratch-render-fonts.git"
Expand All @@ -15,7 +16,11 @@
"test": "npm run build",
"watch": "webpack --progress --watch"
},
"homepage": "https://github.com/scratchfoundation/scratch-render-fonts#readme",
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"dependencies": {
"base64-loader": "1.0.0"
},
Expand Down

0 comments on commit b925940

Please sign in to comment.