From 1d74c9fc1c3a890fbd7895449dd3f9bd9998a2fe Mon Sep 17 00:00:00 2001 From: petroved Date: Mon, 16 Nov 2026 21:14:53 +0000 Subject: [PATCH] docs(readme): add CI / GitHub Actions section Documents Build (coverage thresholds, dist checks), Sandbox HTML (artifact and PR comment) and Publish to GitHub Packages (release vs manual and dry-run), so the README alone explains the automation. Co-authored-by: petroved --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index d009dbf..d974a86 100644 --- a/README.md +++ b/README.md @@ -196,6 +196,16 @@ test/ Vitest suites (coverage thresholds in vitest.config.ts sandbox/example.mjs renders sandbox/generated/*.html for the Sandbox HTML workflow ``` +## CI / GitHub Actions + +| Workflow | File | Runs on | What it does | +| --- | --- | --- | --- | +| Build | `build.yml` | Push and PRs to `main` | On Node 22 and 24: `npm ci`, `npm run typecheck`, `npm run test:coverage` (fails under the thresholds in `vitest.config.ts`: 95% statements/lines/functions, 90% branches), `npm run build`, then checks every `dist/` entry point exists and uploads `dist/` as an artifact. | +| Sandbox HTML | `sandbox.yml` | PRs, push to `main`, manual | Runs `npm run sandbox` (`sandbox/example.mjs`) through [email-template-workflows](https://github.com/LLazyEmail/email-template-workflows) and uploads the rendered HTML as the `sandbox-html` artifact. On PRs it also posts a comment with the file list and sizes, and the run summary shows the same table. | +| Publish to GitHub Packages | `publish.yml` | A published GitHub release, or manual | Typecheck, test and build, set the package version from the release tag (`v1.2.3` → `1.2.3`), then `npm publish` to GitHub Packages with the built-in `GITHUB_TOKEN`. A manual run publishes the version already in `package.json`, or only runs `npm publish --dry-run` when **dry-run** is checked. | + +There are no scheduled jobs or report issues in this repo. + ## License MIT