ci: add frontend preview deployment workflow#437
Open
Julianemeka wants to merge 1 commit into
Open
Conversation
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
|
@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! 🚀 |
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.
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)mainwhenfrontend/**files changenpm ci→ type-check →npm run build(testnet env) → Netlify preview deploynwtgck/actions-netlify@v3to deploy and post the preview URL as a PR commentpr-<number>— isolated per PR, does not touch productiondocs/preview-deployment.md(new)NETLIFY_AUTH_TOKEN,NETLIFY_SITE_ID)Setup required
Add two repository secrets before the workflow is active:
NETLIFY_AUTH_TOKEN— Netlify personal access tokenNETLIFY_SITE_ID— target site ID from Netlify settingsCloses #318