Skip to content

Commit 2b6b8f7

Browse files
author
Lars-Magnus Skog
committed
Document changelog under Developing section
1 parent 3dcf1b0 commit 2b6b8f7

2 files changed

Lines changed: 27 additions & 1 deletion

File tree

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,32 @@ documented types include
286286
}
287287
```
288288

289+
## Developing
290+
291+
### Changelog
292+
293+
When releasing a new version the [`CHANGELOG.md`](./CHANGELOG.md) should be updated. There are three scripts in `package.json` for bumping the version:
294+
295+
- `npm run changelog:patch` -> add new patch section
296+
- `npm run changelog:minor` -> add new minor section
297+
- `npm run changelog:major` -> add new major section
298+
299+
Additionally, you can do `npm run markdown:fix`, which will expand references to pull requests and github users to urls. For example, referencing `@hackergrrl` would expand to `https://github.com/hackergrrl` and referencing `#314` would expand to `https://github.com/cabal-club/cabal-core/pulls/314`.
300+
301+
To release a new version you would typically do something like:
302+
303+
```
304+
npm run changelog:patch
305+
# Manually fill in details and/or tweak CHANGELOG.md
306+
npm run changelog:fix
307+
git add CHANGELOG.md && git commit -m 'Update changelog for x.y.z'
308+
npm version patch
309+
git push && git push --tags
310+
npm publish
311+
```
312+
313+
Try to keep the pull request titles short and descriptive and the changelog will automatically reflect this. A pull request may contain many small commits, but if it's squashed, the git history and the changelog will look clean. At the same time, all commits will still be around on GitHub if digging into details is required.
314+
289315
## License
290316

291317
AGPLv3

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"changelog:patch": "hallmark bump patch",
1010
"changelog:minor": "hallmark bump minor",
1111
"changelog:major": "hallmark bump major",
12-
"changelog:fix": "hallmark --fix"
12+
"markdown:fix": "hallmark --fix"
1313
},
1414
"repository": {
1515
"type": "git",

0 commit comments

Comments
 (0)