Fix: Enable Vercel Deployment for All Contributors Without Individual Login Requirements#388
Merged
Fix: Enable Vercel Deployment for All Contributors Without Individual Login Requirements#388
Conversation
…project.json for project linking
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
…es gracefully, ensuring robust deployment process
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.
#384 helps with this issue
this is a test, can only be validated by merging (need to see if @violaberg and other contributors can use deployment branches)
Problem
Contributors like @violaberg were unable to deploy their PRs to Vercel because the GitHub Actions workflow required individual Vercel authentication. The workflow was failing with:
see original em from #384
Even though repository secrets were properly configured, the
vercel pullcommand was failing in CI environments where projects aren't pre-linked.Root Cause
The workflow was attempting to use
vercel pull --yes --environment=previewwhich expects:Solution
Enhanced the GitHub Actions workflow to work for all contributors using repository-level secrets only:
Backend Deployment Improvements:
vercel pullfirst, but fallback to direct deployment if it fails.vercel/project.jsonwith org/project IDs from repository secretsFrontend Deployment Improvements:
vercel pullVITE_API_BASE_URLis correctly set from backend deployment.vercel/project.jsoncreation for reliabilityChanges Made
Before:
After:
Benefits
✅ Universal Access: Any contributor can now trigger deployments
✅ No Individual Setup: Contributors don't need Vercel accounts or CLI setup
✅ Maintains Security: Uses encrypted repository secrets only
✅ Follows CI/CD Best Practices: Backend deploys first, then frontend with proper URL injection
✅ Backwards Compatible: Still works for existing deployment patterns
Testing Instructions
VERCEL_TOKEN✅VERCEL_ORG_ID✅VERCEL_BACKEND_PROJECT_ID✅VERCEL_FRONTEND_PROJECT_ID✅Verification Steps
After merging, the workflow should:
VITE_API_BASE_URLpointing to backendImpact
Related Issues
Additional Notes
This change maintains all existing functionality while adding resilience for contributor workflows. Repository owners still manage Vercel access through GitHub repository secrets, ensuring secure and controlled deployments.
Ready for Review: This fix enables immediate deployment capability for all contributors while maintaining security and following established CI/CD patterns.