ci(plugins): mirror Gitea main to GitHub main #6

Merged
chrnx merged 1 commits from ci/promote-to-github into develop 2026-09-23 16:43:31 +00:00
Owner

Expressive-Tea/green-tea-plugins now exists on GitHub, and nothing populates it. This adds the promotion that does, modelled on core's promote.yml.

What it does

main → GitHub main, on Gitea only. That is the whole workflow.

  • No contrib branch. Core mirrors develop as contrib because outside contributions land there and that flow is written down. Here it is not, so a second mirrored branch would be one nobody targets. Add it when the flow exists.
  • No tags, --tags included. These packages publish to JSR, where a version can never be replaced or removed. A tag reaching the public forge as a side effect of promoting a branch is the one failure mode with no recovery.
  • The push is never forced. A refusal means GitHub main has commits Gitea main does not — a question to answer, not an obstacle to remove.

The token is in place

GH_PROMOTE_TOKEN is now set on this repository, from gitea/expressive-tea/gitea-promote in pass. Verified against the GitHub API before installing it: it authenticates as chrnx-dev and carries push and admin on Expressive-Tea/green-tea-plugins.

The workflow still fails early and readably when the secret is absent, which is for whoever forks or rebuilds this repository rather than for us.

Two things this does not do

main is 25 commits behind develop, carrying only the initial commit. Merging this changes nothing by itself; the first mirror happens when develop is promoted to main, which is a separate decision.

CI still runs on Gitea only. The if: guards in ci.yml predate core reaching npmjs.org and no longer have a reason, but removing them is its own change. Until then the mirrored repository will carry workflows that skip every job — worth knowing before the public repo gets its first visitor.

`Expressive-Tea/green-tea-plugins` now exists on GitHub, and nothing populates it. This adds the promotion that does, modelled on core's `promote.yml`. ## What it does `main → GitHub main`, on Gitea only. That is the whole workflow. - **No `contrib` branch.** Core mirrors `develop` as `contrib` because outside contributions land there and that flow is written down. Here it is not, so a second mirrored branch would be one nobody targets. Add it when the flow exists. - **No tags, `--tags` included.** These packages publish to JSR, where a version can never be replaced or removed. A tag reaching the public forge as a side effect of promoting a branch is the one failure mode with no recovery. - **The push is never forced.** A refusal means GitHub `main` has commits Gitea `main` does not — a question to answer, not an obstacle to remove. ## The token is in place `GH_PROMOTE_TOKEN` is now set on this repository, from `gitea/expressive-tea/gitea-promote` in `pass`. Verified against the GitHub API before installing it: it authenticates as `chrnx-dev` and carries `push` and `admin` on `Expressive-Tea/green-tea-plugins`. The workflow still fails early and readably when the secret is absent, which is for whoever forks or rebuilds this repository rather than for us. ## Two things this does not do **`main` is 25 commits behind `develop`,** carrying only the initial commit. Merging this changes nothing by itself; the first mirror happens when `develop` is promoted to `main`, which is a separate decision. **CI still runs on Gitea only.** The `if:` guards in `ci.yml` predate core reaching npmjs.org and no longer have a reason, but removing them is its own change. Until then the mirrored repository will carry workflows that skip every job — worth knowing before the public repo gets its first visitor.
chrnx added 1 commit 2026-09-23 16:41:28 +00:00
ci(plugins): mirror Gitea main to GitHub main
CI / dco (pull_request) Successful in 5s
CI / build (pull_request) Successful in 13s
CI / runtimes (bun) (pull_request) Successful in 12s
CI / runtimes (deno) (pull_request) Successful in 12s
CI / runtimes (edge) (pull_request) Successful in 9s
51c54c1cc4
The public repository exists but nothing populates it. This is the same
promotion core uses, cut down to what this repository actually has: one branch.

Only `main`, and no `contrib` counterpart. Core mirrors `develop` as `contrib`
because outside contributions land there, and that flow is documented. Here it
is not, so a second mirrored branch would be a branch nobody targets.

Tags stay off the push, `--tags` included. Core's reason was that the same tag
means one thing on each forge; here it is simpler and sharper — these packages
publish to JSR, and a JSR version can never be replaced or removed, so a tag must
never reach the public forge as a side effect of promoting a branch.

The push is not forced, and the step fails early with a readable message when
GH_PROMOTE_TOKEN is missing rather than building a remote URL with an empty
credential and failing on the push with an authentication error instead. The
secret is set on this repository; the guard is for whoever forks or rebuilds it.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
chrnx force-pushed ci/promote-to-github from 1f5d9db90d to 51c54c1cc4 2026-09-23 16:41:28 +00:00 Compare
chrnx merged commit fd82d10c2b into develop 2026-09-23 16:43:31 +00:00
chrnx deleted branch ci/promote-to-github 2026-09-23 16:43:33 +00:00
Sign in to join this conversation.