-
Notifications
You must be signed in to change notification settings - Fork 994
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug?]: initial deploy to Vercel not working with latest (rw 7.0.6, node 20) #10100
Comments
Interestingly, if I deploy manually using a Github Action with these steps it works fine: - name: Install Vercel CLI
run: npm install --global vercel@canary
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --token=${{ secrets.VERCEL_TOKEN }} --prod
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} --prod But if I use this pre-built GH action, I get the - name: Deploy to Vercel
uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
github-comment: true
github-token: ${{ secrets.GITHUB_TOKEN }}
# Include a --prod flag for Vercel CLI, but leave empty for preview deploys
vercel-args: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && '--prod' || '' }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
I'm not sure if that helps figure out the root cause, but at least there's a workaround that seems to do the trick. |
Thanks for providing a workaround @jason-curtis I'll have someone on the team take a look at this issue that's more familiar with both data-migrate and Vercel deploys than I am. They, or I, will get back to you as soon as we've had a chance to investigate. |
Hey @jason-curtis I can reproduce and I'm pretty sure I know what's at play. Will circle back once I confirm. |
@jason-curtis I think you have to enable Corepack in Vercel's build container via https://vercel.com/docs/deployments/configure-a-build#corepack I should update the setup command to call this out. |
Ahh, I see. I've had to enable corepack in other cases as well- eg. when running tests or lint in CI, my GH actions steps look something like this:
There might be some other docs we could update to clarify that corepack needs to be enabled. |
@jtoar Are you working on updating the set up command? 🙋♀️ Otherwise, I'm happy to update the docs. |
Note there's an open issue and PR upstream for a more straightforward/robust way to enable corepack: actions/setup-node#531 |
@ahaywood not working on this go for it |
This comment was marked as resolved.
This comment was marked as resolved.
@rafavalerio just to make sure, when you run |
Hi @thedavidprice, the reason was locally I was using Yarn 1.x and having Yarn 4.x on Vercel! All solved now! |
fixed by #10355 |
What's not working?
Initial deploy to Vercel fails. Error log: https://gist.github.com/jason-curtis/c922f9cf3b5520e9d2d418667555642b
Key section of the log appears to be:
How do we reproduce the bug?
yarn create redwood-app whatever
What's your environment? (If it applies)
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: