Skip to content

Partner Data API Deployment Pipeline

Interactive workflow map for the GitHub Actions deployment pipeline that builds and deploys the apps/partner-data-api Cloudflare Worker.

File Purpose
ordermatic-partner-data-api-deployment.workflow.html Interactive, pan/zoom viewer with guided views
ordermatic-partner-data-api-deployment.workflow.json Archify source of truth (validated, versioned)
ordermatic-partner-data-api-deployment.workflow.png Static preview for docs / READMEs

Static preview

  • Push β€” a commit or PR touches apps/partner-data-api or the workflow itself.
  • Detect β€” the workflow filters out version-bump-only commits and restricted refs.
  • Build + test β€” the Worker is built and the test suite runs on every PR to staging.
  • Dry-run β€” Wrangler builds and validates the bundle without publishing.
  • Deploy β€” merges to staging deploy to data-staging.ordermatic.co; merges or workflow_dispatch on main deploy to data.ordermatic.co.

Secrets are fetched from Infisical per environment, and concurrency groups prevent overlapping deploys. One runtime secret lives outside the pipeline: wrangler secret put DATABASE_URL --env <env>, which the Worker needs to validate partner API tokens. Bearer requests fail closed (503) without it.

  1. PR validation β€” build, test, and Wrangler dry-run without deploying.
  2. Push to staging β€” the full path through the staging deployment.
  3. Push to production β€” the full path through the production deployment.

The Archify source is the canonical map. To update it:

Terminal window
node /path/to/archify/bin/archify.mjs validate workflow \
apps/docs/public/diagrams/ordermatic-partner-data-api-deployment.workflow.json \
--quality showcase
node /path/to/archify/bin/archify.mjs deliver workflow \
apps/docs/public/diagrams/ordermatic-partner-data-api-deployment.workflow.json \
apps/docs/public/diagrams/ordermatic-partner-data-api-deployment.workflow.html \
--quality showcase
node /path/to/archify/bin/archify.mjs visual-check \
apps/docs/public/diagrams/ordermatic-partner-data-api-deployment.workflow.html

Then commit both the .json source and regenerated .html / .png.