afc163/🔂 Surge PR Preview
Preview website in surge.sh for every pull request
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jun 9, 2026
- License
- MIT
Pinned Snippet
uses: afc163/surge-preview@bf90a5a86111f6311ca42f0a5a0f80fb0fb03cec # v1.13.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| surge_token | surge.sh token | — | 6973bdb764f0d5fd07c910de27e2d7d0 |
| github_token | github token | yes | ${{ github.token }} |
| build | build scripts | no | npm install npm run build |
| dist | dist folder to deploy | no | public |
| failOnError | Set `failed` if a deployment throws error | — | — |
| teardown | Determines if the preview instance will be torn down on PR close | no | false |
| setCommitStatus | Publish 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. | no | false |
| screenshot | Embed a screenshot of the deployed preview in the PR comment (rendered via the thum.io service) | no | false |
| lighthouse | Run Lighthouse (via the PageSpeed Insights API) against the deployed preview and post the scores in the PR comment | no | false |
Outputs
| name | description |
|---|---|
| preview_url | The url for the related PR preview |