Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
shopify-ci-integration【部署与运维】Configure CI/CD pipelines for Shopify apps with GitHub Actions, API version testing, and Shopify CLI deployment. Use when setting up automated testing, deployment pipelines, or API version monitoring for Shopify apps. Trigger with phrases like "shopify CI", "shopify GitHub Actions", "shopify automated tests", "CI shopify", "shopify deploy pipeline".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: shopify-ci-integration description: 'Configure CI/CD pipelines for Shopify apps with GitHub Actions, API version testing,
and Shopify CLI deployment.
Use when setting up automated testing, deployment pipelines, or API version monitoring for Shopify apps.
Trigger with phrases like "shopify CI", "shopify GitHub Actions",
"shopify automated tests", "CI shopify", "shopify deploy pipeline".
' allowed-tools: Read, Write, Edit, Bash(gh:*) version: 2.7.0 license: MIT author: Jeremy Longshore jeremy@intentsolutions.io tags:
Set up CI/CD pipelines for Shopify apps using GitHub Actions, including API version compatibility testing, Shopify CLI deployment, and extension validation.
Create a workflow with lint, test, API version check, and deploy jobs.
See GitHub Actions Workflow for the complete .github/workflows/shopify-ci.yml file.
# Store these in GitHub repository secrets
gh secret set SHOPIFY_API_KEY --body "your_api_key"
gh secret set SHOPIFY_API_SECRET --body "your_api_secret"
gh secret set SHOPIFY_TEST_STORE --body "your-dev-store.myshopify.com"
gh secret set SHOPIFY_TEST_TOKEN --body "shpat_test_token"
gh secret set SHOPIFY_PARTNERS_TOKEN --body "your_partners_cli_token"
Write integration tests that verify store connectivity, required scopes, and rate limit compliance. Tests skip automatically when SHOPIFY_ACCESS_TOKEN is not set.
See Integration Test Structure for the complete Vitest test file.
| Issue | Cause | Solution |
|---|---|---|
SHOPIFY_PARTNERS_TOKEN invalid | Token expired | Regenerate at partners.shopify.com |
| Integration tests timeout | Rate limited | Add delays or use test store with Plus |
| API version check fails | Deprecated version | Update to latest supported version |
| Deploy fails | App config mismatch | Run shopify app config push first |
# Generate a CLI token for CI (no interactive login needed)
# Go to: partners.shopify.com > Settings > CLI tokens
# Create a new token and save as SHOPIFY_PARTNERS_TOKEN secret