Marketplace: branch protection, CI, and the npm naming rule #7

Open
opened 2026-09-25 00:36:51 +00:00 by chrnx · 0 comments
Owner

Pending from the 2026-09-24 work (listing live at https://green-tea.expressive-tea.io/plugins/, main = develop = GitHub main = b59ef42).

1. Branch protection

develop and main have no protection on this repo yet. Match core's: PR-only, no direct pushes (enable_push: false), fast-forward-only promotion of develop → main. promote.yml pushes with a token, so check it still works once protection is on.

2. CI

There is no workflow in this repo; the only gate today is running things locally. Every registry check already lives in readEntry (scripts/registry.mjs) and throws under CI=true, so the workflow mostly has to run:

  • npm ci, npm audit --audit-level=moderate, npm test
  • CI=true npm run build against the live registries: a missing package or a non-ESM npm package fails here

validate.mjs (tasks 4 and 6 of the original plan) adds the checks that are human review today: the package depends on @green-tea/core, and it declares at least one runtime. CONTRIBUTING only claims the automatic checks that run, so update it when these land.

The workflow has to run on PRs to develop on Gitea, and on external PRs to GitHub contrib, the same as core. GitHub evaluates pull_request workflows from the base branch, so the workflow has to reach contrib before it can gate anything there.

3. Decision: NPM_NAME regex

src/content.config.ts rejects any npm name that is not green-tea-<x> or @scope/green-tea-<x>. matcha 26.9.0-beta.1 treats that as a suggestion ("it is only a naming convention"). Decide whether the listing relaxes it the same way, or keeps enforcing it.

Pending from the 2026-09-24 work (listing live at https://green-tea.expressive-tea.io/plugins/, `main` = `develop` = GitHub `main` = `b59ef42`). ## 1. Branch protection `develop` and `main` have no protection on this repo yet. Match core's: PR-only, no direct pushes (`enable_push: false`), fast-forward-only promotion of `develop` → `main`. `promote.yml` pushes with a token, so check it still works once protection is on. ## 2. CI There is no workflow in this repo; the only gate today is running things locally. Every registry check already lives in `readEntry` (`scripts/registry.mjs`) and throws under `CI=true`, so the workflow mostly has to run: - `npm ci`, `npm audit --audit-level=moderate`, `npm test` - `CI=true npm run build` against the live registries: a missing package or a non-ESM npm package fails here `validate.mjs` (tasks 4 and 6 of the original plan) adds the checks that are human review today: the package depends on `@green-tea/core`, and it declares at least one runtime. CONTRIBUTING only claims the automatic checks that run, so update it when these land. The workflow has to run on PRs to `develop` on Gitea, and on external PRs to GitHub `contrib`, the same as core. GitHub evaluates `pull_request` workflows from the **base** branch, so the workflow has to reach `contrib` before it can gate anything there. ## 3. Decision: `NPM_NAME` regex `src/content.config.ts` rejects any npm name that is not `green-tea-<x>` or `@scope/green-tea-<x>`. matcha 26.9.0-beta.1 treats that as a suggestion ("it is only a naming convention"). Decide whether the listing relaxes it the same way, or keeps enforcing it.
Sign in to join this conversation.