Skip to content

Restrict GitHub Packages publish to release refs#23

Merged
ejsmith merged 1 commit into
mainfrom
fix-github-packages-publish
May 22, 2026
Merged

Restrict GitHub Packages publish to release refs#23
ejsmith merged 1 commit into
mainfrom
fix-github-packages-publish

Conversation

@ejsmith

@ejsmith ejsmith commented May 22, 2026

Copy link
Copy Markdown
Contributor

Restricts the GitHub Packages publish steps in CI to main and version tag refs.

The failing run built fetchclient.tgz successfully, then failed publishing @foundatiofx/fetchclient@1.3.4-alpha.0.2 to GitHub Packages with E409 Cannot publish over existing version. Branch push workflows were allowed to publish next packages, so a feature/dependency branch could publish the same MinVer prerelease version that main later tries to publish after merge.

This keeps package build validation on branch pushes, but prevents non-release branch refs from publishing immutable GitHub Packages versions.

@ejsmith ejsmith merged commit bc248ab into main May 22, 2026
4 checks passed
@ejsmith ejsmith deleted the fix-github-packages-publish branch May 22, 2026 16:59
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