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
ci: update GH Action & Cypress dependencies for a successful build. #117
Conversation
This also sets the default vercel scope to secrets.VERCEL_ORG_ID
Previously, we were accidently installing 2 versions of Cypress. See: cypress-io/cypress#4595
@@ -125,14 +125,14 @@ jobs: | |||
steps: | |||
- uses: actions/checkout@v2 | |||
<% if (host.name === 'vercel') { -%> | |||
- uses: ngduc/vercel-deploy-action@master | |||
- uses: amondnet/vercel-action@v20 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
with: | ||
vercel-token: ${{ secrets.VERCEL_TOKEN }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}} | ||
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}} | ||
# SET THIS OR YOU WILL DEPLOY TO YOUR PERSONAL VERCEL NAMESPACE | ||
# scope: ${{ secrets.VERCEL_TEAM_ID }} | ||
# scope: ${{ secrets.VERCEL_ORG_ID }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for background, how will users know to uncomment this? Is it in the tutorial?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could definitely use some more documentation. I think the correct answer here is to prompt for this value when creating the project. I'll add a followup issue for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, FWIW.
…117) * update actions/setup-node to 2.1.2 * update vercel-action to amondnet/vercel-action@v20. This also sets the default vercel scope to secrets.VERCEL_ORG_ID * fixes Cypress issues Previously, we were accidently installing 2 versions of Cypress. See: cypress-io/cypress#4595
There were three major changes required here. The
setup-node
step was done by @cmejet in #112. I split it out to a separate PR so that we can keep the Chakra UI upgrade isolated.This PR also replaces the forked version of
vercel-action
that we were using previously(https://github.com/ngduc/vercel-deploy-action) with the original one (https://github.com/amondnet/vercel-action). It has the required updates for the recentset-env
deprecation from GitHub (https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/).Finally,
@testing-library/cypress
combined with our main Cypress version was causing us to download it twice, then fail the build on a checksum error. For more background, see: cypress-io/cypress#4595Changes
setup-node
to v2.1.2vercel-action
to v20@testing-library/cypress
to^7.0.2
cypress
to^6.1.0
Screenshots
Checklist
Fixes #116