Compare commits

...
6 Commits
Author SHA1 Message Date
chrnx b59ef424c0 Merge pull request 'docs: point plugin authors at matcha create plugin' (#5) from docs/matcha-create-plugin into develop
Promote → GitHub / push-github (push) Successful in 6s
2026-09-25 00:31:39 +00:00
chrnx b623a6687a docs: point plugin authors at matcha create plugin
matcha 26.9.0-beta.1 scaffolds a package that already meets the
listing's ESM rule and carries the Runtimes table the review asks for,
so CONTRIBUTING and the first step on the home say so.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 19:31:00 -05:00
chrnx 927742f11c Merge pull request 'ci: promote main and develop to the public GitHub repository' (#3) from ci/promote-to-github into develop
Promote → GitHub / push-github (push) Successful in 12s
2026-09-24 15:38:22 +00:00
chrnx 002f604d8b ci: promote main and develop to the public GitHub repository
main becomes GitHub main and develop becomes GitHub contrib, the same
two-branch mirror core uses. Feature branches stay on Gitea. Neither
push is forced, so contrib refuses a push while it holds external
merges that have not been carried into develop.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 10:38:12 -05:00
chrnx dcf236afe1 Merge pull request 'feat: plugin pages, ESM-only npm, and a home that sells the listing' (#2) from feature/plugin-pages into develop 2026-09-24 15:30:00 +00:00
chrnx de7d695f65 Merge pull request 'fix: list the official plugins from JSR, where they now live' (#1) from fix/jsr-only-entries into develop 2026-09-24 15:29:20 +00:00
3 changed files with 57 additions and 0 deletions

No files matched your search

+42
View File
@@ -0,0 +1,42 @@
name: Promote → GitHub
# Runs on Gitea only, and mirrors two branches to the public GitHub repository, nothing else:
#
# main → GitHub main what gets built and deployed
# develop → GitHub contrib what outside contributors fork from and open pull requests against
#
# Feature branches stay private to Gitea, which is why this is a job and not Gitea's push-mirror:
# a mirror would publish every branch.
#
# Neither push is forced. For `contrib` that is the guard, not a limitation: the push is refused
# exactly when `contrib` holds external merges that have not been carried into `develop` yet.
# Carry them, and the next develop push fast-forwards. This is the same flow as core's promote.yml.
#
# No tags are mirrored. This site has no release tags; a deploy is the Friday cut from `main`.
on:
push:
branches: [main, develop]
jobs:
push-github:
if: ${{ github.server_url != 'https://github.com' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # full history for a clean push
- name: Push to GitHub
env:
GH_TOKEN: ${{ secrets.GH_PROMOTE_TOKEN }}
run: |
case "$GITHUB_REF_NAME" in
main) target=main ;;
develop) target=contrib ;;
*) echo "::error::promote runs for main and develop only, got '$GITHUB_REF_NAME'"; exit 1 ;;
esac
git remote add github "https://x-access-token:${GH_TOKEN}@github.com/Expressive-Tea/green-tea-marketplace.git"
if ! git push github "HEAD:refs/heads/${target}"; then
echo "::error::GitHub ${target} has commits that ${GITHUB_REF_NAME} does not. For contrib that means external merges not yet carried into develop — carry them; never force this push."
exit 1
fi
+4
View File
@@ -16,6 +16,10 @@ npm works too, as long as the package is ESM only: `"type": "module"`, no `requi
no `.cjs` file in `main` or `exports`. Dual ESM/CJS packages are turned away. green-tea is ESM from no `.cjs` file in `main` or `exports`. Dual ESM/CJS packages are turned away. green-tea is ESM from
end to end, and a `require` path is the first thing to break when the Node version floor moves. end to end, and a `require` path is the first thing to break when the Node version floor moves.
The quickest start is [matcha](https://github.com/Expressive-Tea/matcha), green-tea's CLI:
`matcha create plugin --package` writes a package that already meets the ESM rule, with the
Runtimes table the review asks for in its README.
## Add the entry ## Add the entry
Add one file, `src/content/plugins/<name>.yaml`: Add one file, `src/content/plugins/<name>.yaml`:
+11
View File
@@ -14,6 +14,7 @@ const shown = EXAMPLE_ENTRY.replace(/[ \t]+#.*$/m, '').trim();
<li class="step"> <li class="step">
<h3>Publish</h3> <h3>Publish</h3>
<p>Put it on JSR, or on npm as an ESM-only package.</p> <p>Put it on JSR, or on npm as an ESM-only package.</p>
<p class="step__hint"><code>matcha create plugin --package</code> scaffolds one.</p>
</li> </li>
<li class="step step--wide"> <li class="step step--wide">
<h3>Add one file</h3> <h3>Add one file</h3>
@@ -71,6 +72,16 @@ const shown = EXAMPLE_ENTRY.replace(/[ \t]+#.*$/m, '').trim();
color: var(--dim); color: var(--dim);
} }
.step__hint {
margin-top: 10px !important;
font-size: 0.85rem;
}
.step__hint code {
font-family: var(--font-mono);
color: var(--matcha);
}
.step :global(pre) { .step :global(pre) {
margin: 14px 0 0; margin: 14px 0 0;
padding: 12px 14px; padding: 12px 14px;