Repository navigation
Add a GitHub Action: preview or build vs production on every PR - #20
Merged
Merged
Conversation
Composite action at the repo root: runs src/cli.ts from the action's ref, caches Chromium, waits for left, writes the compact summary to the job summary, uploads the out dir, and fails on renderdiff's exit code. accept records differences on the runner, since pixel hashes don't match across macOS and Linux. Releases move the v0 tag. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 24, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A composite action at the repo root (
uses: tmashara/renderdiff@v0), per the v1 plan.src/cli.tsfrom the action's own ref on Node 22: no build, no npm version skew.npm ci --omit=dev --ignore-scripts, Chromium cached by Playwright version.wait-timeoutforleftto answer, then runs. The compact summary goes to the job summary, the out dir to an artifact, and the step fails on renderdiff's exit code (only errors fail withoutthreshold).acceptrecords differences on the runner and putsrenderdiff.accepted.jsonin the artifact. Pixel hashes don't match across macOS and Linux (checked: 4 of 12 Mac-accepted shots matched on Linux), so docs say accept in CI.storage-statetakes a secret's contents, written 0600 and deleted after the run.v*.*.*, and it movesv0after publishing./color+/tintunder a threshold exit 1,acceptwrites the file.docs/github-action.md(inputs, Vercel/Netlify preview, build in the job, Renovate/Dependabot), a short README section, a portability note indocs/accepted.md.Cut from v1: sticky PR comment, provider API lookups for preview URLs, Vercel protection bypass headers.
🤖 Generated with Claude Code