A script to generate changelog from github releases
Generate changelog for GitHub releases from Conventional Commits,
- Forked from changelogithub
- Forked from changelogen
- Support exclamation mark as breaking change, e.g.
chore!: drop node v10
- Grouped scope in changelog
- Create the release note, or update the existing one
- List contributors
- Support
--dry
mode to preview the changelog - Support
--all
mode to write to a file - Support
--from
and--to
mode to write to a file between two tags
In GitHub Actions:
- combined with bumpp
# .github/workflows/release.yml
name: Release
permissions:
contents: write
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npx changeloggithub@latest
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
It will be trigged whenever you push a tag to GitHub that starts with v
.
npx changeloggithub@latest --dry
npx changeloggithub@latest --all true
npx changeloggithub@latest --from v1.0.0 --to v2.0.0 --output changelog-v2.0.0.md