[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live)

[Help](/c/help/9)

# CI/CD to vercel with Github action

143 views · 1 like · 2 posts


Black02430horse (@black02430horse) · 2024-08-13

Hi Every one,

I am new here -Vercel and trying to implement CI/CD with github action.

I am also invited to our team and trying to deploy to one of our projects.

In the following command I used my personal `VERCEL_TOKEN`.

`vercel --prod --yes --token=${{ secrets.VERCEL_TOKEN }}`

But it is being deployed to my personal vercel account not our team's project.

If anyone has idea on it, please help me.

Thanks,


Amy Egan (@amyegan) · 2024-08-13 · ♥ 1

Hi @black02430horse! When deploying via the CLI, you need to make sure it's switched to the right team scope. On local you could do this using `vercel switch`, but with automated deployment you need to get there a different way. 

Make sure the `VERCEL_TOKEN` has access to the team scope. You'll also need to include the `VERCEL_ORG_ID` and `VERCEL_PROJECT_ID` as secrets or environment variables for the workflow.

This guide has more details and includes links to example workflows:
https://vercel.com/guides/using-vercel-cli-for-custom-workflows