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.
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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Expressive-Tea/green-tea-pluginsnow exists on GitHub, and nothing populates it. This adds the promotion that does, modelled on core'spromote.yml.What it does
main → GitHub main, on Gitea only. That is the whole workflow.contribbranch. Core mirrorsdevelopascontribbecause 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.--tagsincluded. 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.mainhas commits Giteamaindoes not — a question to answer, not an obstacle to remove.The token is in place
GH_PROMOTE_TOKENis now set on this repository, fromgitea/expressive-tea/gitea-promoteinpass. Verified against the GitHub API before installing it: it authenticates aschrnx-devand carriespushandadminonExpressive-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
mainis 25 commits behinddevelop, carrying only the initial commit. Merging this changes nothing by itself; the first mirror happens whendevelopis promoted tomain, which is a separate decision.CI still runs on Gitea only. The
if:guards inci.ymlpredate 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.1f5d9db90dto51c54c1cc4