Review And Activate A Release
Three numbers identify where you are. A draft revision names one version of editable source. A release ID names one build. The site's generation goes up by one each time a release is published or rolled back.
Check The Build
pnpm fold status RELEASE_ID
A queued build is still processing. For a failed build, read the diagnostic, correct the source and submit another preview. Open the ready preview yourself before you ask anyone to sign it off.
Request A Review
A review is optional. Request one on a ready release before it's first published.
pnpm fold review request RELEASE_ID
From then on, that release can't go live without approval. The review is tied to the release, so the decision covers the bytes the publisher previewed.
Decide A Review
A publisher lists the releases waiting for a decision, opens the preview, and approves or rejects.
pnpm fold reviews
pnpm fold review approve RELEASE_ID
pnpm fold review reject RELEASE_ID
pnpm fold review status RELEASE_ID
The status moves from pending to processing when the publisher decides, then to approved or rejected. After a rejection, edit the source, build a new preview and request a new review. Repeating the same decision is safe. A decision that contradicts the recorded one returns HTTP 409.
To get an email when a review is requested, a publisher runs pnpm fold notices set EMAIL and confirms with pnpm fold notices confirm CODE.
Publish
Read the generation with pnpm fold sites. Publish with the release ID, that generation and a new UUID.
pnpm fold publish RELEASE_ID CURRENT_GENERATION "$(uuidgen)"
If the generation you passed is out of date, someone else published first. Read the current generation, look at what is live, and decide whether to publish again.
Next: Publish retries