Skip to content

ci: auto-create GitHub Release with generated notes after publish#8

Merged
pkudinov merged 1 commit into
mainfrom
ci/auto-github-release
Jun 22, 2026
Merged

ci: auto-create GitHub Release with generated notes after publish#8
pkudinov merged 1 commit into
mainfrom
ci/auto-github-release

Conversation

@pkudinov

Copy link
Copy Markdown
Contributor

Releases stopped being created after v0.3.0, even though tags/npm publishes continued. This adds a github-release job to the publish workflow so each release is recorded automatically.

What

  • New github-release job, needs: publish (only runs after a successful npm publish).
  • Uses the runner's built-in ghgh release create "$GITHUB_REF_NAME" --generate-notes --latest --verify-tag — so no third-party action is introduced.
  • --generate-notes builds "What's Changed" from the PRs merged since the previous release; going forward each release's notes are scoped to just its changes.
  • contents: write is scoped to this job only; publish keeps its minimal contents: read + id-token: write.

Note

v0.5.0 was backfilled manually (it published before this existed): https://github.com/Tokenbooks/wt/releases/tag/v0.5.0

🤖 Generated with Claude Code

Add a github-release job (needs: publish) that runs `gh release create`
with --generate-notes, so every published tag gets a GitHub Release whose
notes are built from the PRs merged since the previous release. Uses the
runner's preinstalled gh (no third-party action) and contents: write only
on this job, keeping the publish job least-privilege.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@pkudinov pkudinov merged commit aa6592a into main Jun 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant