News for hackers. Stuff that matters.

Show HN: I Built a GitHub Action to Wait for Vercel Deployments Before CI

https://github.com/marketplace/actions/vercel-preview-url-with-status-polling

I built a GitHub Action that solves a common pain point in CI/CD pipelines with Vercel deployments. Instead of relying on GitHub's deployment_status events, it actively polls Vercel's API to ensure deployments are truly ready before running tests or other checks.

Key technical features: - Direct integration with Vercel's API for real-time deployment status - Configurable polling with timeout and interval settings - Support for team projects and branch aliases - Works with both preview and production deployments - No special webhook configuration needed

The main advantage is reliability: Many CI pipelines fail intermittently because they start running tests before Vercel deployments are actually ready. Traditional solutions rely on GitHub's deployment_status events, which can be unreliable or require complex setup.

This action solves that by: 1. Retrieving the latest deployment for your project/branch 2. Extracting the preview/production URL 3. Actively polling until the deployment is genuinely ready

Example use cases: - Running E2E tests against preview deployments - Multi-app testing workflows - Post-production deployment validation - Accessibility testing on live environments

I'd love feedback from the HN community, especially from those dealing with similar CI/CD challenges.

( 1 comment | on HN )
Re:Show HN: I Built a GitHub Action to Wait for Vercel Deplo... by anthonyshew on Tuesday July 29, 2025 @09:53PM (#44730270)
Hey! You may want to take a look at the `repository_dispatch` events that we recently shipped: https://vercel.com/docs/git/vercel-for-github#repository-dis...