Skip to content

Conversation

Copy link

Copilot AI commented Jan 27, 2026

The publish-release.yml workflow fails when triggered multiple times with the same version (retries, manual triggers) because it attempts to create a tag/release that already exists.

Changes

  • Tag existence check: Added step using git ls-remote --tags origin "refs/tags/$tag" to query remote for existing tags before release creation
  • Conditional release creation: Modified "Create GitHub Release" step to only execute when tag_exists == 'false'
  • Skip notification: Added informative log message when tag already exists to clarify workflow behavior

The workflow now handles idempotent execution gracefully while maintaining existing npm publish behavior.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits January 27, 2026 14:36
Co-authored-by: mkistler <800728+mkistler@users.noreply.github.com>
Co-authored-by: mkistler <800728+mkistler@users.noreply.github.com>
Co-authored-by: mkistler <800728+mkistler@users.noreply.github.com>
Copilot AI changed the title [WIP] Address feedback on revised release and publish workflows Add tag existence check to prevent duplicate release creation Jan 27, 2026
Copilot AI requested a review from mkistler January 27, 2026 14:39
@mkistler
Copy link
Contributor

I'm going to start over on this.

@mkistler mkistler closed this Jan 28, 2026
@mkistler mkistler deleted the copilot/sub-pr-73-another-one branch January 28, 2026 17:43
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.

2 participants