Skip to content

ci: add frontend preview deployment workflow#437

Open
Julianemeka wants to merge 1 commit into
PrincessnJoy:mainfrom
Julianemeka:ci/preview-deployment-workflow-318
Open

ci: add frontend preview deployment workflow#437
Julianemeka wants to merge 1 commit into
PrincessnJoy:mainfrom
Julianemeka:ci/preview-deployment-workflow-318

Conversation

@Julianemeka

Copy link
Copy Markdown
Contributor

Summary

Adds a GitHub Actions workflow that automatically deploys the React + Vite frontend to a Netlify preview URL on every PR that touches frontend/.

Changes

.github/workflows/preview.yml (new)

  • Triggered on PRs to main when frontend/** files change
  • Steps: checkout → Node 20 → npm ci → type-check → npm run build (testnet env) → Netlify preview deploy
  • Uses nwtgck/actions-netlify@v3 to deploy and post the preview URL as a PR comment
  • Preview alias: pr-<number> — isolated per PR, does not touch production

docs/preview-deployment.md (new)

  • Documents required secrets (NETLIFY_AUTH_TOKEN, NETLIFY_SITE_ID)
  • Covers rollback via Netlify dashboard and CLI
  • Includes local preview instructions

Setup required

Add two repository secrets before the workflow is active:

  • NETLIFY_AUTH_TOKEN — Netlify personal access token
  • NETLIFY_SITE_ID — target site ID from Netlify settings

Closes #318

Closes PrincessnJoy#318

- Add .github/workflows/preview.yml triggered on PRs touching frontend/
- Type-check and build against testnet RPC, deploy to Netlify preview alias
- Post preview URL as PR comment via nwtgck/actions-netlify
- Add docs/preview-deployment.md covering setup, secrets, rollback, local preview
@drips-wave

drips-wave Bot commented Jun 26, 2026

Copy link
Copy Markdown

@Julianemeka Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add continuous deployment or preview deployment workflow

1 participant