Skip to content

fix: publish to PSGallery only on push to main#8

Merged
yfridelance merged 1 commit into
mainfrom
fix/publish-only-on-main-push
Feb 26, 2026
Merged

fix: publish to PSGallery only on push to main#8
yfridelance merged 1 commit into
mainfrom
fix/publish-only-on-main-push

Conversation

@yfridelance
Copy link
Copy Markdown
Owner

Summary

  • Publish step was running on both PR builds and main pushes
  • PR build published first → main push got 409 Conflict since version already existed
  • Added github.event_name == 'push' condition so publish only runs after merge to main

Test plan

  • Verify this PR build does NOT trigger the publish step
  • Verify next version bump + merge to main publishes correctly

🤖 Generated with Claude Code

The publish step ran on both PR builds and main pushes, causing
the PR build to publish first and the subsequent main push to fail
with a 409 Conflict since the version was already on PSGallery.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@yfridelance yfridelance merged commit b261c37 into main Feb 26, 2026
@yfridelance yfridelance deleted the fix/publish-only-on-main-push branch February 26, 2026 17:56
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