Skip to content

chore(ci): delete release-patch.yml — one workflow for trusted publishing - #176

Open
ronaldtse wants to merge 1 commit into
mainfrom
chore/remove-release-patch-workflow
Open

chore(ci): delete release-patch.yml — one workflow for trusted publishing#176
ronaldtse wants to merge 1 commit into
mainfrom
chore/remove-release-patch-workflow

Conversation

@ronaldtse

Copy link
Copy Markdown
Member

Summary

Delete release-patch.yml. There must be exactly one workflow for trusted npm publishing — release.yml.

Why delete

release-patch.yml was a parallel workflow that:

  • Auto-bumped the patch version
  • Auto-committed to main
  • Auto-tagged
  • Auto-pushed
  • Then triggered release.yml

All from a single workflow_dispatch click with just a dry_run toggle. That's a separate trust boundary from release.yml's tag-push trigger and created a path where one workflow_dispatch click could cause a release.

The correct release flow

  1. Maintainer opens a PR with the version bump (e.g. 0.7.105 → 0.7.106)
  2. PR merges through review
  3. Maintainer pushes v0.7.106 tag
  4. release.yml auto-triggers → tests → smoke gate → npm publish --provenance
  5. GitHub Release created from the tag

Tags are releases. The maintainer decides when to tag — not a workflow.

Test plan

  • release.yml still triggers on tag push (unchanged)
  • release-patch.yml no longer exists in .github/workflows/

…hing

release-patch.yml was a parallel workflow that auto-bumped version,
auto-committed to main, auto-tagged, and triggered release.yml. That's
a separate trust boundary from release.yml's tag-push trigger and
created a path where one workflow_dispatch click (with just a dry_run
toggle) could cause a release.

Trusted npm publishing must go through exactly one workflow:
release.yml, triggered by a maintainer-pushed v* tag. The maintainer
decides when to tag (and therefore when to release); the version in
package.json is bumped via PR as part of normal code review.
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