---
title: "Maintain Xova Actions"
canonical_url: "https://actions.xovajs.com/en/maintenance/verification"
---
# Maintain Xova Actions

## Check a change locally

| Command | What it checks |
| --- | --- |
| `mise exec -- pnpm check` | Regenerates distribution files, runs tests and runs `pnpm lint`. |
| `mise exec -- pnpm lint` | Runs `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:check` | Checks the committed distribution files and licenses against the build output without writing files. |
| `mise exec -- pnpm docs:build` | Builds the Node version of both documentation locales for local preview. |
| `mise exec -- pnpm docs:preview` | Serves the built site locally, including the read-only `/mcp` endpoint. |
| `mise exec -- pnpm docs:build:worker` | Builds 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

| Job | What it verifies |
| --- | --- |
| `check` | Checks the distribution files, installs the tools pinned by the examples, then runs tests and lint. |
| `code` | Runs the monorepo workspace tests through the shared `check.yml`. |
| `docs` | Builds `examples/monorepo/apps/docs` at the same SHA and uploads an artifact with hidden files. |
| `verify` | Downloads 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](https://github.com/xova-dev/actions/blob/main/.github/workflows/internal-ci.yml).

## First deployment of the Actions documentation site

On pull requests, [internal-docs.yml](https://github.com/xova-dev/actions/blob/main/.github/workflows/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 permission | Purpose |
 | --- | --- |
 | `Workers Scripts: Edit` | Upload the Worker and static assets and attach the custom domain. |
 | `D1: Edit` | Look 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 secret | Value |
 | --- | --- |
 | `CLOUDFLARE_ACCOUNT_ID` | Cloudflare Account ID for the account hosting `xovajs.com`. |
 | `CLOUDFLARE_API_TOKEN` | The 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](https://github.com/xova-dev/actions/blob/main/docs/wrangler.jsonc).

## 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`.


## Sitemap

See the full [sitemap](https://actions.xovajs.com/sitemap.md) for all pages.
