afc163/🔂 Surge PR Preview

Preview website in surge.sh for every pull request

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jun 9, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: afc163/surge-preview@bf90a5a86111f6311ca42f0a5a0f80fb0fb03cec # v1.13.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
surge_tokensurge.sh token—6973bdb764f0d5fd07c910de27e2d7d0
github_tokengithub tokenyes${{ github.token }}
buildbuild scriptsnonpm install npm run build
distdist folder to deploynopublic
failOnErrorSet `failed` if a deployment throws error——
teardownDetermines if the preview instance will be torn down on PR closenofalse
setCommitStatusPublish the deployment as a commit check run (requires `checks: write`). Useful when the action runs from a `workflow_run` event and would otherwise not appear in PR checks.nofalse
screenshotEmbed a screenshot of the deployed preview in the PR comment (rendered via the thum.io service)nofalse
lighthouseRun Lighthouse (via the PageSpeed Insights API) against the deployed preview and post the scores in the PR commentnofalse
namedescription
preview_urlThe url for the related PR preview