Xova
Maintenance

Maintain Xova Actions

Check a change locally

CommandWhat it checks
mise exec -- pnpm checkRegenerates distribution files, runs tests and runs pnpm lint.
mise exec -- pnpm lintRuns lint:actions for workflows and action metadata, then lint:repo for JS/TS, Markdown, YAML, JSON/JSONC, TOML and pnpm configuration, including tests and examples.
mise exec -- pnpm build:checkChecks the committed distribution files and licenses against the build output without writing files.
mise exec -- pnpm docs:buildBuilds the Node version of both documentation locales for local preview.
mise exec -- pnpm docs:previewServes the built site locally, including the read-only /mcp endpoint.
mise exec -- pnpm docs:build:workerBuilds the production Worker and static assets in docs/.output/. The public site URL is https://actions.xovajs.com.

Edit guides in both docs/content/zh-cn/ and docs/content/en/. Example commands and configs live in examples/, titles and descriptions in docs/prepare-examples.mjs.

Run docs:build, then docs:preview. Check both locales and their raw Markdown, e.g. /raw/en/guides/deployment.md.

Read the GitHub Actions results

JobWhat it verifies
checkChecks the distribution files, installs the tools pinned by the examples, then runs tests and lint.
codeRuns the monorepo workspace tests through the shared check.yml.
docsBuilds examples/monorepo/apps/docs at the same SHA and uploads an artifact with hidden files.
verifyDownloads the docs artifact by ID. Checks that code and docs returned the current commit SHA, then verifies the full-check marker, homepage HTML and contents of .well-known/security.txt.

All four jobs use contents: read. See internal-ci.yml.

First deployment of the Actions documentation site

On pull requests, internal-docs.yml only builds the Worker. Before the first deployment, confirm that xovajs.com is active in the target Cloudflare account and that actions.xovajs.com is available for this site.

  1. Create a Cloudflare API token, optionally using the Edit Cloudflare Workers template. Scope it to the target account, limit its zone permissions to xovajs.com and grant the account permissions below.
    Account permissionPurpose
    Workers Scripts: EditUpload the Worker and static assets and attach the custom domain.
    D1: EditLook up an existing database and create one on first deployment if needed.
  2. In the xova-dev GitHub organization, open Settings → Secrets and variables → Actions and add two organization secrets. For both, set repository access to Selected repositories → xova-dev/actions.
    Organization secretValue
    CLOUDFLARE_ACCOUNT_IDCloudflare Account ID for the account hosting xovajs.com.
    CLOUDFLARE_API_TOKENThe token created in the previous step.

On pushes to main, the deploy job uploads the Worker built in that run. Wrangler reuses the D1 database xova-actions-docs by name or creates it if missing. The Worker uses the DB binding. You can omit database_id. See the Wrangler config.

What the local tests cover

  • CI reuse. Tests vary the repository, source SHA, config and run attempt. They also check fallback after matrix failures, timeouts and runs missing the full-check marker.
  • Dependency caches. Tests install real dependencies on cache hits and misses using a stand-in for the hosted cache API. Check a hosted run for transfer results and timing.
  • Publishing. Tests run release-it and pack real tarballs with pnpm or npm. They substitute test responses for the remote APIs. On the first release, check OIDC, the published registry version and provenance.
  • Deployment. Tests check the source SHA, artifact files and digest. To inspect the Worker upload arguments locally, set XOVA_TEST_WRANGLER to the absolute path of bin/wrangler.js for the repository’s pinned Wrangler version. Run mise exec -- node --test test/deployment-artifact.test.mjs. The test uses --dry-run.
Copyright © 2026