Skip to content

ci: serialize publishes with a concurrency group - #14

Merged
arjunjain merged 1 commit into
mainfrom
ci/publish-concurrency
Aug 26, 2026
Merged

ci: serialize publishes with a concurrency group#14
arjunjain merged 1 commit into
mainfrom
ci/publish-concurrency

Conversation

@arjunjain

Copy link
Copy Markdown
Collaborator

GitHub delivered the `v0.2.0` tag push twice in newsdata-java-sdk, so two publish runs raced and Sonatype rejected the loser:

Component with coordinate io.newsdata:newsdataapi:0.2.0 is currently being published in another deployment

The artifact published fine — but the workflow showed red, which is exactly the kind of false alarm that trains people to ignore release failures.

A concurrency group queues a duplicate delivery instead of racing it. cancel-in-progress stays false so an in-flight upload is never killed part-way through.

Applied to the publish/release workflow in all seven publishing repos; this is the PHP one.

GitHub delivered the v0.2.0 tag push twice in newsdata-java-sdk, so two
publish runs raced and Sonatype rejected the loser: "Component with
coordinate io.newsdata:newsdataapi:0.2.0 is currently being published in
another deployment". The artifact published fine, but the run showed red.

A concurrency group queues the duplicate instead of racing it.
cancel-in-progress stays false so an in-flight upload is never killed
part-way.
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@arjunjain
arjunjain merged commit d00f5a1 into main Aug 26, 2026
9 checks passed
@arjunjain
arjunjain deleted the ci/publish-concurrency branch August 26, 2026 15:34
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