Skip to content

ci: cut GitHub Release in bump flow, not on every tag push#83

Merged
bradens merged 2 commits into
mainfrom
ci/github-releases-both-flows
Jun 25, 2026
Merged

ci: cut GitHub Release in bump flow, not on every tag push#83
bradens merged 2 commits into
mainfrom
ci/github-releases-both-flows

Conversation

@bradens

@bradens bradens commented Jun 25, 2026

Copy link
Copy Markdown

Why

We have two release paths that both end in a v* tag push (which fires release.yml → npm publish):

  1. Automaticworkflow_dispatchbump.yml bumps the version and pushes a tag.
  2. Manual — a maintainer creates a Release in the GitHub UI, which creates the tag.

The previous release.yml ran action-gh-release on every tag push. For the manual flow the Release already exists (with hand-written notes), so it clobbered those notes with auto-generated ones. The automatic flow, meanwhile, produced no Release at all once that step was removed.

What

  • bump.yml — create the GitHub Release after pushing the tag (only the automatic flow needs one). Tag name is captured from pnpm version output. Added permissions: contents: write so GITHUB_TOKEN can create the release. Bump command moved to a block scalar to avoid the :-in-scalar YAML parse error.
  • release.yml — dropped the release step; it stays npm-publish-only for both flows.

Result

  • Automatic flow → bump.yml cuts the Release.
  • Manual flow → GitHub UI cuts the Release (notes preserved).
  • release.yml → npm publish for both.

bradens added 2 commits June 25, 2026 09:42
Move GitHub Release creation from release.yml to bump.yml so the
automatic (workflow_dispatch) flow gets a release, while manual
UI-created releases keep their hand-written notes.

- bump.yml: create release after tag push; capture tag from pnpm
  version output; add contents:write permission
- release.yml: drop release step (was clobbering UI-authored notes
  since it ran on every v* tag push)
@bradens bradens merged commit 5bca05e into main Jun 25, 2026
2 checks passed
@bradens bradens deleted the ci/github-releases-both-flows branch June 25, 2026 16:45
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