From 57c4707bc536171644f4488182322bd6f8331ec9 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Wed, 23 Sep 2026 11:58:48 -0500 Subject: [PATCH] ci: run on both forges, and watch contrib MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .github/workflows/ci.yml | 23 ++++++++++++++--------- AGENTS.md | 18 +++++++++++++----- 2 files changed, 27 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ecc4ca3..67fce8f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,20 +1,27 @@ name: CI -# Runs on the development forge only, through the `if:` guards below. The reason they were added is -# gone — the packages used to build against a core that existed on an internal registry, and now -# resolve it from npmjs.org like anyone else — so lifting them is unblocked. Until that happens, the -# public mirror carries this file with every job skipped. +# Runs on BOTH forges. It used to be guarded to the development forge, because the packages built +# against a core that existed only on an internal registry a public runner cannot reach. They now +# resolve `@green-tea/core` from npmjs.org, so that reason is gone and the guards are too. +# +# `contrib` is in both lists because external pull requests target it (CONTRIBUTING.md). Leaving it +# out is not a smaller version of running CI — it is none: a pull request against a branch that is +# not listed triggers nothing at all, so a contributor gets no signal and neither does whoever +# merges it. +# +# GitHub does not run workflows on pull requests from forks until a maintainer approves them, so a +# contributor's first push may sit with no checks for a while. That is not a rejection. on: push: - branches: [develop, main] + branches: [develop, main, contrib] pull_request: - branches: [develop, main] + branches: [develop, main, contrib] jobs: # Its own job so a missing sign-off reports on its own and costs nothing on push. Checks that the # trailer is present, not that it matches the author. dco: - if: github.event_name == 'pull_request' && github.server_url != 'https://github.com' + if: github.event_name == 'pull_request' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -39,7 +46,6 @@ jobs: # Node 22 is the lowest `engines.node` any package declares (spec 2.5: build on the floor). build: - if: github.server_url != 'https://github.com' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -59,7 +65,6 @@ jobs: # A fixed matrix, not `fromJSON`: Gitea Actions support for a dynamic matrix was not verified. Each # entry runs only the packages whose engines name that runtime (scripts/run-runtime.mjs). runtimes: - if: github.server_url != 'https://github.com' runs-on: ubuntu-latest strategy: fail-fast: false diff --git a/AGENTS.md b/AGENTS.md index 155e334..2844fe5 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -54,11 +54,19 @@ mirror push refuse. removed, so promoting a tag has to stay a deliberate act rather than a side effect of promoting a branch. -CI itself still runs on the development forge only, through the `if:` guards in `ci.yml` — but the -reason is gone: the packages used to build against a core that existed on an internal registry -alone, and since 2026-09-22 they resolve `@green-tea/core` from npmjs.org like anyone else. -Removing those guards is unblocked rather than done, and until it happens the mirrored repository -carries workflows that skip every job. +**CI runs on both forges, and `contrib` is one of the branches it watches.** It used to be guarded +to the development forge, because the packages built against a core that existed only on an +internal registry a public runner cannot reach; they resolve `@green-tea/core` from npmjs.org now, +so the guards are gone. + +Adding `contrib` to the mirror without adding it to `ci.yml` would have been worse than not having +the branch. A pull request against a branch a workflow does not list triggers **nothing** — not a +reduced set of checks, none — so a contributor would see no signal and neither would whoever merged +it. The two changes belong together. + +GitHub does not run workflows on pull requests from forks until a maintainer approves them, so a +contributor's first push may sit with no checks for a while. That is not a rejection, and it is +worth saying so rather than letting silence read as one. ## The plugin convention