sb_publish
Publish a draft page to the live site and report the deployed revision ID and timestamp. Optionally verify the live origin serves it; shared global sections republish together.
Instructions
Compile the draft into the live page, and report which revision went live (id, publishedAt, fromVersionId). PUBLISH CASCADES: a page sharing a global section with others republishes them too, because a header edited once must not go live on one page and stay stale on the rest. verify:true then fetches the live page and says whether the origin is serving that revision yet — the storefront caches for 60s, so a reload showing the old page is that, not a failed publish.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| verify | No | Fetch the live page afterwards and report whether it serves this revision | |
| dry_run | No | ||
| page_id | Yes | ||
| site_id | No | ||
| publish_drafts | No | Also publish every other page whose draft is ahead of its live copy (listed as unpublished_drafts) |