Skip to content

Publish to every registry after each successful generation of main - #106

Merged
colinjlacy merged 1 commit into
runtimeconditions:mainfrom
itvi-1234:auto-publish-after-generation
Dec 2, 2026
Merged

colinjlacy merged 1 commit into
runtimeconditions:mainfrom
itvi-1234:auto-publish-after-generation

Conversation

@itvi-1234

Copy link
Copy Markdown
Member

What this changes

Publishing starts by itself after generation

Publish bindings to every registry now also runs on its own when Generate and commit finishes successfully on main.

  • It publishes every package in every language, as a real run, with setup_done and Maven auto publish on. The pull request card already asked maintainers to do any registry setup before the merge.
  • First, a small job checks if another generation run is waiting or running. If one is, this run publishes nothing, because that run will start publishing when it finishes. So if many pull requests are merged at once, publishing happens once, after the last generation.
  • Preflight only sends each registry the versions it does not have, so a run with nothing new ends after the lookups.
  • The manual run is unchanged: same inputs, same defaults, same behaviour.

Go publishing no longer fails when main moves

Before, if anything was merged to main during a Go publish (even a docs change), the publish stopped with "main moved". Now it goes ahead if:

  • the packaged commit is still on main, and
  • none of the published module folders changed since.

Tags still go on the packaged commit. If a module folder did change, or main was rewritten, it stops as before.

Publish bindings to every registry now also starts by itself when Generate and
commit succeeds on main. That run takes every package and language as a real
run, with setup_done and Maven auto publish on, because the pull request card
asked maintainers to do any registry setup before the merge. A first job checks
for other generation runs: if one is queued or running, this run publishes
nothing, since that run starts publishing when it finishes. So many merges at
once lead to one publication after the last generation. The manual run keeps
its inputs and behaves as before.

Go publishing no longer stops just because main moved during the run, for
example with a docs change. Tags still go on the packaged commit, which must
stay on main, and none of the published module folders may have changed
since; otherwise it stops as before.

The docs said the pypi and maven-central environments ask for approval. They
have no required reviewers, so they do not; the docs now say that, and how to
add a gate later.
@itvi-1234
itvi-1234 requested a review from colinjlacy December 2, 2026 14:17

@colinjlacy colinjlacy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can dig it

@colinjlacy
colinjlacy merged commit 3b80e08 into runtimeconditions:main Dec 2, 2026
8 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.

2 participants