Prepare the repository to be public: scrub infrastructure, add community files #8

Merged
chrnx merged 3 commits from chore/scrub-before-publish into develop 2026-09-23 17:01:07 +00:00
3 Commits
Author SHA1 Message Date
chrnx 57c4707bc5 ci: run on both forges, and watch contrib
CI / dco (pull_request) Successful in 5s
CI / build (pull_request) Successful in 12s
CI / runtimes (bun) (pull_request) Successful in 12s
CI / runtimes (deno) (pull_request) Successful in 11s
CI / runtimes (edge) (pull_request) Successful in 9s
Adding `contrib` to the mirror without adding it here was a hole, not a gap.
A pull request against a branch a workflow does not list triggers **nothing** —
not a reduced set of checks, none — so an external contributor would have seen
no signal at all, and neither would whoever merged their work. The branch and
its CI had to land together; the previous commit shipped only half of that.

So `contrib` joins `develop` and `main` in both trigger lists, and the three
`github.server_url != 'https://github.com'` guards are gone. Their reason went
with Verdaccio: the packages used to build against a core that existed only on
an internal registry a public runner cannot reach, and they resolve
`@green-tea/core` from npmjs.org now. Guarding CI to one forge while inviting
contributions to the other cannot both be true.

The dco job keeps `github.event_name == 'pull_request'`, matching core, so it
reports on pull requests and costs nothing on push.

Verified the way a public runner would: the workflow names no secrets and no
internal hosts, and a fresh clone runs `npm ci`, lint, typecheck, the Node suite
and `deno publish --dry-run` with nothing configured.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-23 11:58:48 -05:00
chrnx e1ea1542c9 docs: add the community files GitHub expects before this goes public
CI / dco (pull_request) Successful in 5s
CI / build (pull_request) Successful in 12s
CI / runtimes (bun) (pull_request) Successful in 11s
CI / runtimes (deno) (pull_request) Successful in 11s
CI / runtimes (edge) (pull_request) Successful in 8s
The repository had a LICENSE and nothing else. Adds CONTRIBUTING, a code of
conduct, a security policy, the DCO, issue templates and a pull request
template — the set GitHub checks for, written for these packages rather than
copied from core.

**This adds a `contrib` branch, reversing a decision made earlier today.** The
promotion originally mirrored `main` alone, on the reasoning that a repository
with no documented contribution flow does not need a branch nobody targets. That
reasoning held right up until we decided to document one. CONTRIBUTING has to
send people somewhere, `main` is the wrong answer — a pull request there puts the
forges out of step and breaks the next promotion — so `develop → contrib` is
back, the same arrangement core runs.

What is adapted rather than inherited:

- Node 22, not core's 18, which is what every package here already requires.
- No build step anywhere. JSR transpiles the source, so `deno publish --dry-run`
  is what stands in for one.
- The four traps an assistant falls into *here*: turning `import type` into a
  value import, adding a build, writing for Node alone, and changing `engines`
  without the README's Runtimes table.
- SECURITY scopes each package separately, and sends vulnerabilities in the
  framework itself to core — same people, but the advisory has to live where the
  fix does.

There is also a plugin proposal template, which exists to ask the question that
is cheaper in a paragraph than in a written pull request: whether a thing belongs
in the official set at all, or is better as the author's own package. The
template says the second outcome is first-class, because it usually is.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-23 11:55:22 -05:00
chrnx a3f57e61d9 chore(ci): stop naming internal infrastructure in files that go public
`main` is about to be mirrored to a public repository for the first time, so
everything in the tree becomes readable by anyone. Two things in here were
written when only the development forge could see them.

`ci.yml` carried the internal registry's hostname in a step that authenticated
to it — twice. That step is also dead: `.npmrc` no longer points the @green-tea
scope anywhere, and core resolves from npmjs.org. So this removes a published
hostname and an instruction that does nothing, in the same edit.

`AGENTS.md` named the origin by its repository path. Core's public copy says
"Development lives on a private Gitea instance" and stops there, which is the
right level: a reader learns the shape of the workflow without learning where it
lives, and a path they cannot reach tells them nothing anyway.

`promote.yml` keeps saying the forge by name, because core's public copy does and
the two should read alike. Naming the product is not the problem; naming the host
was.

Checked the rest while here: no credentials, no keys, no personal paths or
addresses, no issue templates routing anyone to a forge they cannot open.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-23 11:50:52 -05:00