Skip to content

ci: idempotent pub.dev publish — skip already-published versions#113

Merged
pbertsch merged 1 commit into
mainfrom
fix/publish-idempotent
May 13, 2026
Merged

ci: idempotent pub.dev publish — skip already-published versions#113
pbertsch merged 1 commit into
mainfrom
fix/publish-idempotent

Conversation

@pbertsch
Copy link
Copy Markdown
Contributor

Summary

  • Replaces the reusable dart-lang/setup-dart/.github/workflows/publish.yml@v1 with inline steps for all three packages
  • Each publish step captures dart pub publish -f output and exits 0 when the server responds with "already exists" — treating it as a no-op rather than a failure
  • Real failures (auth errors, invalid package, network errors) still propagate and fail the job correctly
  • Fixes the persistent red CI badge on v0.9.7 and v0.9.8 caused by annotation/gen OIDC not being set up until now

Test plan

  • Merge and re-run against v0.9.8 tag — all three jobs should pass (agent=already exists, annotation=already exists, gen=already exists)
  • Next version bump will publish the changed package(s) and skip unchanged ones cleanly

🤖 Generated with Claude Code

Replace reusable dart-lang/setup-dart publish workflow with inline
steps that treat 'already exists' as success. This lets the workflow
pass cleanly when only a subset of packages have new versions (e.g.
v0.9.8 bumped probe_agent but not annotation/gen), and after manual
publish catches up a skipped package.
@pbertsch pbertsch requested a review from a team as a code owner May 13, 2026 05:47
@pbertsch pbertsch merged commit 43127f5 into main May 13, 2026
13 checks passed
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