Workflow and action interfaces
Shared workflows use GitHub.com hosted Ubuntu runners with Node 24 by default. Projects can use mise and choose their triggers, permissions and checks. For another runner or step order, call the public composite actions from a project job and test on that runner.
Task requirements
| Task | Configuration |
|---|---|
code | code.check-command |
artifact | artifact.check-command, artifact.build-command and artifact.output-directory, even with provider: none. |
| Publish | github-release or npm. The npm section requires npm.verify-command. |
| Deploy | Select the platform with artifact.provider. Cloudflare Pages requires project-name. Workers read static config from source. A bundle supplies its own config and requires worker-name. |
The input JSON Schema defines fields and types. Each task validates its configuration before running commands.
Pass inputs between workflows
Projects call these four workflows with jobs.<id>.uses.
| Workflow | Inputs |
|---|---|
| All | config-file defaults to .github/xova.json. Deploy with the same tracked config used to build that artifact. |
check.yml | task defaults to code, source-sha to the event SHA. With require-reachable enabled, a repository branch or tag must contain the commit. |
check-ci.yml | workflow-file selects the CI workflow to look up. It defaults to .github/workflows/ci.yml in the caller’s repository. |
publish.yml | On tag events, release-tag defaults to github.ref_name and expected-sha to github.sha. If an upstream job verified the commit, pass its SHA as expected-sha. |
deploy.yml | Pass the build’s source-sha and exactly one of artifact-id or artifact-name. production with latest-stable requires release-tag. Omit it for preview. |
Grant the job calling publish.yml both contents: write and id-token: write, even for a standalone GitHub Release. Only the npm publish job uses OIDC. Grant provider write access and secrets only to the deployment job.
Checks and caching
- For docs-only checks in routine CI, enable
detect-changesand setcode.docs-only-pathsandcode.docs-only-command. PRs compare against the merge base, pushes against the event’s before SHA. - All changes must match the listed paths to run the docs-only command. A config change, empty diff or missing base triggers the full code check. The docs job still builds the artifact.
- Use
detect-changes: falsefor releases. A build-onlynpm.verify-commandrequires full project checks to have passed on the same SHA. Otherwise, include all required checks.
Reuse CI for a release commit
check-ci.yml needs contents: read and actions: read. It looks up the latest trusted push or workflow_dispatch run for the SHA. Reuse requires the whole run to have succeeded, including a full code check with the same config file.
- Single check command — Set
run-check-on-miss: trueto run the full check on a miss or timeout. See the monorepo tag publication. - Project matrix — Lookup is the default. If it succeeds with an empty
source-sha, run the matrix on the candidate commit and pass the verified SHA to publication.
Invalid inputs fail the job. Require successful verification before publication and build any deployment artifact in the same run.
Dependency caches
| Setting | Behavior |
|---|---|
Omit setup.cache | Checks detect pnpm or npm lockfiles in the install directory and skip caching if both types are present or both are missing. pnpm must be on PATH. npm prefers npm-shrinkwrap.json. |
Set setup.cache | Lockfile paths or globs for pnpm, npm and uv are relative to the repository root. Each enabled entry must match at least one file or the job fails before installing dependencies. |
artifact.cache | Replaces the inherited cache settings. {} disables caching for the artifact build. |
npm publication uses only explicit setup.cache entries. On a cache hit, jobs still install locked dependencies and run checks.
Public actions
Each linked action.yml lists the inputs and outputs.
Checks
| Action | When to use it |
|---|---|
| project-config | Reads the tracked project config at the selected commit, checks the working tree and config, and fills in defaults. CI can also use it to detect docs-only changes. |
| setup | Sets up the selected toolchain for checks, builds or publication. Use the cache JSON input to configure pnpm, npm or uv download caches. Installation still uses the lockfile on a cache hit. |
| check-ci-run | Looks up full CI for expected-sha. Defaults are .github/workflows/ci.yml for workflow-file, .github/xova.json for config-file, and 1800 for wait-seconds. A match returns source-sha and run-id. On an empty result, the caller runs its full checks. If input-error is true, stop the release. |
| check-source | Checks that HEAD matches expected-sha and that tracked files and the index are clean. Returns source-sha on success. |
Artifacts
| Action | When to use it |
|---|---|
| artifact-pack | Pass expected-sha and output-directory. Run project checks and build first, or use check.yml to orchestrate both commands and packing. Returns source-sha and artifact-id. |
| artifact-restore | Release asset publication and deployment adapters use this action. It downloads by ID or name, verifies the manifest and content digest, and returns payload-directory and source-sha. |
Publication
| Action | When to use it |
|---|---|
| check-release-notes | Checks the triggering tag, its commit SHA and the notes for that version in the changelog. |
| publish-npm | Publishes a public package using release-tag and verify-command. You can also set expected-sha and tarball-verify-command. Defaults are v for the tag prefix, . for the working directory, auto for the dist-tag and npm for the packer. On success it returns source-sha, version, tarball-sha256 and receipt-artifact-name. |
| publish-github-release | Publish or resume a GitHub Release from the verified source and assets. |
Deployment
| Action | When to use it |
|---|---|
| check-release-eligibility | Requires release-tag and expected-sha. latest-only=false accepts an already published stable Release; the default additionally requires it to be latest. API errors/source mismatches fail. |
| deploy-github-pages | Requires expected-sha and either artifact-id or a site-specific artifact-name. Validates then deploys, returning url. Does not need checkout or npm dependencies. |
| deploy-cloudflare-pages | Validates the selected artifact and uploads its static payload/ to the production environment of project-name. Wrangler runs outside the checkout and records the verified source SHA on the deployment. |
| deploy-cloudflare-worker | static reads serving configuration from the selected commit. bundle checks worker-name and deploys with the packaged config without checking out source. Static previews require preview-worker and return the immutable url including the site base path. |
Candidate verification rules
- Commit — The native
GITHUB_SHAand tag must match the candidate. Check HEAD, tracked files and index before and after product commands. Untracked build output is allowed. - Repository —
package.jsonrepositorymust identify the public consumer repository, matchingGITHUB_REPOSITORYincluding case. A string orurlobject is accepted. Passwords, usernames other thangit, query strings and fragments are rejected. A local Git remote cannot supply missing package metadata. - Version — Use canonical SemVer without a
vprefix or invalid leading zeroes. Source and tag retain build metadata. The registry omits it, so0.2.0+build.007publishes as0.2.0. - Archive — Verify name, version, non-private status and repository from the packed
package/package.json, including an alternate manifest produced bypublishConfig.directory. Recheck the original tarball SHA-256 before publication.
See release-it configuration for packers and TARBALL tests. See Deploy documentation for permissions and deployment policy.
Artifact manifest
Each artifact built with artifact-pack contains payload/ and source.json. The manifest requires the following fields.
{ "schemaVersion": 3, "repository": "owner/repo", "sha": "<40 lowercase hex>", "component": "app", "kind": "static", "digest": "<SHA-256>" }
artifact-pack and all three deployment adapters accept component, defaulting to app. Multi-site callers assign each site a distinct ID and pass it to both build and deployment.
Deployment verifies the repository, source SHA, component, artifact kind and content digest. Build output must be a project subdirectory containing regular files. Hidden content such as .well-known/ is included. GitHub Pages excludes .git/ and .github/.
Artifacts are retained for seven days by default. Restore them from the same trusted run and grant production credentials only to the deployment job.
Compatibility
The public interface covers workflow and action inputs, outputs, defaults, failure and skip conditions, and artifact formats. Pin workflows, actions and the release-it preset to the same full commit SHA from xova-dev/actions. To upgrade, select a new commit that passed toolkit CI, update the references together and run the workflows your project uses.