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
2 changed files with 27 additions and 14 deletions
Showing only changes of commit 57c4707bc5 - Show all commits

No files matched your search

+14 -9
View File
@@ -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
+13 -5
View File
@@ -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