feat(publish)!: select one publication gate by default - #74
Merged
Conversation
Release flows can combine forge approval with registry approval even when one enforced gate covers publication. This makes maintainers confirm the same release several times. The selected gate must cover the complete release flow. Existing extra gates remain until the maintainer accepts a migration. BREAKING CHANGE: R-PUB-02 now requires Maven Central credentials to become available only after a native forge publication gate.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
A fresh oss-publish run against botchart under Codex with GPT-5 exposed the problem. Its two npm packages release together. The generated flow required one GitHub approval and two npm approvals. The first staged publish also failed because npm read
package/*.tgzas GitHub shorthand.Why this way
A publication gate must stop CI from making the release public. It must also cover every package in the release flow with one action.
npm staged publishing meets both conditions for one package. npm creates one stage per package, so a coordinated multi-package release uses one forge gate.
Maven Central uses the same user token for upload and publish API calls. A USER_MANAGED deployment cannot protect publication from CI that holds the token. The forge gate protects the token, and Central publishes automatically after approval.
GitLab deployment approval rules require a later manual job start. A protected blocking manual job provides one action.
Verification
bun run typecheckbun test, 327 tests passedbun run validate, 0 errors and 0 warningsbash tests/test-check-drift.sh, 12 tests passedbash scripts/check-drift.shbun scripts/check-ecosystems.mjs, 11 ecosystems x 7 skills presentskillspector scan ./skills/ --no-llm --format jsonbun run buildinsite/, 114 pages builtgit diff --checkAffects
BREAKING CHANGE: R-PUB-02 now requires Maven Central credentials to become available only after a native forge publication gate.