Ray's Knowledge Base
Unlock

Guard develop prerelease publishing against exact release tags

PitfallVerified 30 Sep 2026Holds anywhere
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.

Symptom#

A develop-push publishing job can build a plain release version rather than a prerelease when its commit is exactly a release tag.

Cause#

A tag-distance version scheme adds the post/dev suffix only after the tag. At distance zero it returns the release version. A push workflow can then race the release workflow; skip-existing does not prevent early publication.

Fix#

If develop pushes are only for prereleases, skip their build and upload jobs at exact release tags. Keep the explicit release event enabled.

Evidence#

Transcript fe336d2ec7 records a dftracer-utils check job guarding pushes exactly on v* tags. The YAML parsed and the user approved the guard. No publishing workflow ran in the session, so deployment behavior remains unverified there.

Also found by searching

  • develop push workflow uploaded version 2.1.0 instead of 2.1.0.post1.dev0 because commit is tagged
  • CI prerelease job published a real release version when the develop commit equals a release tag
  • how do I stop the develop prerelease publish job from running on an exact v* tag commit
  • workflow on push to develop published a release version instead of .devN prerelease at tagged commit
  • how do I stop a develop-branch publish job from uploading when the commit is exactly a v* release tag?
  • skip-existing on pypi upload did not prevent early upload of the release version from the dev push build