Skip to content

ci: release workflow — tag + publish on version bump - #11

Merged
bdelanghe merged 1 commit into
mainfrom
claude/release-workflow
Jun 23, 2026
Merged

ci: release workflow — tag + publish on version bump#11
bdelanghe merged 1 commit into
mainfrom
claude/release-workflow

Conversation

@bdelanghe

Copy link
Copy Markdown
Contributor

Automates release-cutting so future versions don't need the manual gh release create / tag-push dance (tag pushes 403 from the dev sandbox; this runs server-side in Actions).

How it works

On push to main when package.json changes, the job:

  1. reads version from package.json,
  2. checks whether vX.Y.Z is already tagged (idempotent — no-ops if so),
  3. otherwise gh release create vX.Y.Z --target <sha> --generate-notes.

Uses contents: write + the default GITHUB_TOKEN; actions pinned by SHA to match the existing workflows.

Flow from here

Bump package.json in a PR → merge → this cuts the tag + release automatically. --generate-notes produces a PR changelog; richer prose notes can still be edited in on the web after.

Doesn't touch v0.3.0 (already released). First auto-cut will be v0.3.1/v0.4.0.

🤖 Generated with Claude Code


Generated by Claude Code

When package.json's version changes on main, tag vX.Y.Z on the merge commit
and cut a GitHub release with auto-generated notes (contents: write, via the
Actions GITHUB_TOKEN). Removes the manual gh release / tag-push step — tag
pushes 403 from the dev sandbox, so cutting releases server-side in CI is the
reliable path. Idempotent: no-ops if the tag already exists.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011GNDVjvsbTPsbWV9fEyjLt
@bdelanghe
bdelanghe marked this pull request as ready for review June 23, 2026 03:18
@bdelanghe
bdelanghe merged commit d5fba49 into main Jun 23, 2026
1 check passed
@bdelanghe
bdelanghe deleted the claude/release-workflow branch June 23, 2026 20:37
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.

2 participants