How do I Eas build into an expo organization instead of my personal expo account?
Asked Answered
S

6

5

my boss has recently made an expo organization so we can start working together more on our builds. He invited me to the organization, and I accepted, however, I am confused about how I build to this organization instead of my personal account? Whenever I try to upload a new build with

eas build --profile preview --platform android

It continues to build in my personal expo account instead of adding it to the organization account as well. My boss made sure to give me all the privileges so I know that is not the issue. I have also tried logging out eas and logging back into eas using 'eas logout/login'. For such a simple question, I have had a hard time finding a quick solution to this. If anyone has insight on this, that would be appreciated. Thanks!

Edit: also wanted to add that I have looked around a decent amount and have checked the accounts expo docs, and they don't mention how to do this.

Selassie answered 2/3, 2023 at 4:50 Comment(0)
R
8

In project's root, you have app.json file, add the following:

"owner": "<yourOrganization>"

Once you do it, run:

eas build:configure

It will fetch the correct project under your given organization.

Redeemer answered 14/1 at 23:53 Comment(2)
This is the only answer solving OP's problem.Certiorari
thanks, that worked! It was also needed to update the projectId key in app.json, but that was the right move for me. "extra": { "eas": { "projectId": "<YourOrganizationProjectID"> } }, "owner": "<yourOrganization>"Arrogant
A
2

Did you transfer the app you are building to the organization in expo website (Settings / Transfer Project)?

Aboveboard answered 2/3, 2023 at 9:15 Comment(0)
S
2

You may need to (re)initialize the project to the organization ID. Try:

eas init --id=XXXXX

where XXXXX is the correct project ID (in the organization). Then do your build command.

See: https://github.com/expo/eas-cli#eas-init

Sexcentenary answered 11/5, 2023 at 22:18 Comment(0)
T
1

I figured it out. Go to you expo account, Go to your Organization Account, Access Token, Add Robot, Create Token.

eas logout to logout your personal account

EXPO_TOKEN=xxxx eas init

EXPO_TOKEN=xxxx eas build --profile preview --platform android

Tella answered 19/4 at 2:4 Comment(0)
E
0

You can log out of your personal account and log in with your organization's credentials if you'd rather use your organization's account instead of your own.

eas logout

eas login

see: https://github.com/expo/eas-cli#eas-logout

Enginery answered 7/12, 2023 at 7:32 Comment(0)
W
0

Create a project under your organization (if you haven't already). Then inside your app.json

{ 
  "expo": {
  "slug": <project slug here>, 
  "owner": <project name here>,
    "extra": {
      "eas": {
        "projectId": <project id here>
      }
    }
  }
}

Then

eas build:configure
Williawilliam answered 27/10 at 19:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.