changelogen-gh
v0.1.1
Published
Generate Beautiful Changelogs using Conventional Commits, Github Action optimized.
Downloads
5
Readme
changelogen
This is a fork version from unjs/changelogen. I made some modification to fit Github Action workflow.
Changes
- Remove
--bump, and updatingpackage.json, which means you should tag your repo yourself and modify version in your package manager, such aspackage.json,Cargo.toml, etc.
Examples
name: Release Changelog
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
changelog:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
- name: Setup git config
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Release changelog
run: npx changelogen-gh --release --push
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}This will:
- generate changelog from previous tag to current tag.
- make a new commit and push to remote repo.
- create/update release in Github release.
[!WARNING] I haven't tested other functions, for details of my modification please check this commit.
