Skip to content

CI/CD Overview

Five GitHub Actions workflows handle linting, deployment, PR previews, and translation checks.

Why CI/CD for this theme

Theme source lives in theme/ — a subdirectory, not the repo root. Shopify's GitHub integration requires files at root, so the CI pipeline builds the theme and pushes theme/ contents to a live/ branch where files sit at root. That branch is connected to the store via Shopify's GitHub integration for two-way sync.

Workflows

WorkflowFileTriggerPurpose
CIci.ymlPush to main, PRsLint (ESLint) + Theme Check
Deploydeploy.ymlPush to main, manualBuild, pull customizations, deploy to live/ branch
PR Previewpr-preview.ymlPR opened/updatedPush preview theme, comment on PR
PR Cleanuppr-preview-cleanup.ymlPR closedDelete preview theme
Translation Checki18n-check.ymlPRsVerify locale translations are current

Prerequisites

CI and translation check work with no configuration. Deploy and preview need:

Secrets:

NameValue
SHOPIFY_CLI_THEME_TOKENTheme Access token (shptka_...)
ANTHROPIC_API_KEY (optional)Claude API key for auto-translation

Variables:

NameValue
STORE*.myshopify.com domain
LIVE_THEME_IDNumeric ID of published theme

See Installation for setup instructions.

Next steps