Prepare the repository to be public: scrub infrastructure, add community files #8
No files matched your search
@@ -1,20 +1,27 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
# Runs on the development forge only, through the `if:` guards below. The reason they were added is
|
# Runs on BOTH forges. It used to be guarded to the development forge, because the packages built
|
||||||
# gone — the packages used to build against a core that existed on an internal registry, and now
|
# against a core that existed only on an internal registry a public runner cannot reach. They now
|
||||||
# resolve it from npmjs.org like anyone else — so lifting them is unblocked. Until that happens, the
|
# resolve `@green-tea/core` from npmjs.org, so that reason is gone and the guards are too.
|
||||||
# public mirror carries this file with every job skipped.
|
#
|
||||||
|
# `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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [develop, main]
|
branches: [develop, main, contrib]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [develop, main]
|
branches: [develop, main, contrib]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Its own job so a missing sign-off reports on its own and costs nothing on push. Checks that the
|
# 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.
|
# trailer is present, not that it matches the author.
|
||||||
dco:
|
dco:
|
||||||
if: github.event_name == 'pull_request' && github.server_url != 'https://github.com'
|
if: github.event_name == 'pull_request'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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).
|
# Node 22 is the lowest `engines.node` any package declares (spec 2.5: build on the floor).
|
||||||
build:
|
build:
|
||||||
if: github.server_url != 'https://github.com'
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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
|
# 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).
|
# entry runs only the packages whose engines name that runtime (scripts/run-runtime.mjs).
|
||||||
runtimes:
|
runtimes:
|
||||||
if: github.server_url != 'https://github.com'
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|||||||
@@ -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
|
removed, so promoting a tag has to stay a deliberate act rather than a side effect of promoting a
|
||||||
branch.
|
branch.
|
||||||
|
|
||||||
CI itself still runs on the development forge only, through the `if:` guards in `ci.yml` — but the
|
**CI runs on both forges, and `contrib` is one of the branches it watches.** It used to be guarded
|
||||||
reason is gone: the packages used to build against a core that existed on an internal registry
|
to the development forge, because the packages built against a core that existed only on an
|
||||||
alone, and since 2026-09-22 they resolve `@green-tea/core` from npmjs.org like anyone else.
|
internal registry a public runner cannot reach; they resolve `@green-tea/core` from npmjs.org now,
|
||||||
Removing those guards is unblocked rather than done, and until it happens the mirrored repository
|
so the guards are gone.
|
||||||
carries workflows that skip every job.
|
|
||||||
|
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
|
## The plugin convention
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user