automate-commit-based-gh-release-changelog
Automate GitHub release creation and changelog generation from Conventional Commits using changelogithub — includes GitHub release mechanics, tag-based triggers, required permissions, and fetch-depth gotcha. Use when setting up GitHub releases, generating changelogs from commits, using changelogithub, or configuring v* tag triggers and contents:write permissions.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- automate-commit-based-gh-release-changelog
- description
- Automate GitHub release creation and changelog generation from Conventional Commits using changelogithub — includes GitHub release mechanics, tag-based triggers, required permissions, and fetch-depth gotcha. Use when setting up GitHub releases, generating changelogs from commits, using changelogithub, or configuring v* tag triggers and contents:write permissions.
- disable-model-invocation
- true
03 SKILL.md 正文
Automate Commit-Based GitHub Release Changelog
Uses changelogithub to read Conventional Commits between tags and create (or update) a GitHub release with a formatted changelog.
Workflow setup
Trigger and permissions
on:
push:
tags:
- "v*"
permissions:
contents: write # required — default contents:read cannot create releases
Changelog step
Run changelogithub as the last step — after npm publish (if any) — so a failed publish doesn't create a dangling GitHub release:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # full tag history required; shallow clone produces empty changelog
- uses: pnpm/action-setup@v6
- name: Generate changelog
run: pnpm dlx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Conventional Commits
changelogithub groups entries by type and surfaces breaking changes at the top:
| Commit prefix | Changelog section |
|---|---|
feat: |
Features |
fix: |
Bug Fixes |
chore: |
Chores |
feat!: / chore!: |
Breaking Changes (top) |
Commits that don't follow the convention are omitted from the changelog.
Preview before pushing a tag
pnpm dlx changelogithub --dry
Reference
- For a complete end-to-end workflow combining npm publish + changelog generation, see
automate-npm-release/EXAMPLE_WORKFLOW.ymlif that skill is installed locally.
04 同仓库更多 Skills
writing-for-humans
How to write a short document a person has to read and act on - a ticket, a pull request body, a commit message, a handover note. Covers the title, a shape people skim, evidence that survives a refactor, and stripping the AI phrasing out. Call it before drafting any of those.
writing-for-agents
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
node-cli
Patterns and conventions for building Node.js CLI tools — src structure, entry point setup, Commander wiring, and update notifications. Use when creating or modifying a Node.js CLI, adding Commander commands, wiring update-notifier, or asking how to structure a CLI entry point or src directory.
humanizer
Removes traces of AI-generated text. Suitable for editing or reviewing text to make it sound more natural and human-written. Based on the comprehensive Wikipedia guide on "AI writing characteristics." Detects and fixes patterns such as: exaggerated symbolism, promotional language, superficial analysis ending in "-ing," vague attribution, overuse of dashes, the rule of three, AI-typical vocabulary, negative parallelism, and excessive transitional phrases.
create-ticket
Draft one small, plain ticket as a markdown file, then file it on the project's tracker once the user approves.
create-pr
Open one pull request as a draft, with a body the reviewer can act on.