๐ Ghost Theme Deploy for GitHub Actions (DEV)
July 13, 2026 ยท View on GitHub
This guide covers local development, validation, and releases for the GitHub Action.
Develop
Use Node.js 24 and the pnpm version declared in package.json:
corepack enable
pnpm install --frozen-lockfile
Validate
pnpm lintruns oxlint and checks formatting with oxfmtpnpm lint:fixfixes supported lint issues and reformats filespnpm typecheckchecks the action, tests and Vitest configuration with TypeScriptpnpm testruns the unit, entrypoint and real-archive acceptance testspnpm test:coverageenforces the ratcheted coverage thresholds used by CIpnpm buildcompiles the source with TypeScript, then bundles the emitted JavaScript intodist/with nccpnpm preshipruns the complete release validation sequence
GitHub Actions runs dist/index.js, so the built output is committed. For human-authored changes to the source or bundled dependencies, run pnpm build and commit the resulting dist/ changes. Do not edit dist/ by hand. CI verifies that the committed bundle matches the source.
Renovate pull requests are the exception: Renovate updates manifests without rebuilding dist/. After those changes reach main, the sync-dist workflow rebuilds and commits any bundle changes.
Publish
pnpm ship patchruns typecheck, lint, coverage and build, then bumps, commits, tags and pushespnpm ship minororpnpm ship majorfor larger version bumpspnpm ship 2.1.0for an explicit version
Don't forget to ๐ Star ๐ the repo if you like this GitHub Action !