deploy-to-vercel-action: Error: Cannot read property 'login' of null

While deploying I get the following error, do you have any ideas?

Error: Cannot read property 'login' of null
Screen Shot 2022-06-21 at 01 26 07

The deploy script is basically copy’n’paste from the docs:

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Deploy to Vercel CI

on:
  workflow_dispatch:
  push:
    branches: [develop]

jobs:
  deploy:
    runs-on: ubuntu-latest
    if: "!contains(github.event.head_commit.message, '[skip ci]')"
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Deploy
        uses: BetaHuhn/deploy-to-vercel-action@v1
        with:
          GITHUB_TOKEN: ${{ secrets.GH_PAT }}
          VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
          VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
          VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
          PRODUCTION: false

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 8
  • Comments: 16 (2 by maintainers)

Most upvoted comments

I used the proposal written by @Elindorath above

Run the following git config --local user.name “Name on Github” git config --local user.email “use_the_email_for_your_account@github.com”

Then made a small change to a random file and commited, pushed and then it worked!

Maybe this would solve your issues also? @krystiankedra and @jerrywu001

I did the workaround and still getting the same error @BetaHuhn Screen Shot 2022-07-09 at 2 51 14 PM

If anyone else is facing this issue, pinning the action to v1.9.0 is a temporary work around confirmed by @wottpal (https://github.com/yieldgate/yieldgate/pull/14#issuecomment-1162138808)

The issue might be caused by one of the last dependency updates which broke something internal, will take a closer look sometime this week.