diff --git a/CHANGELOG.md b/CHANGELOG.md index cc91ba14a6..c967b9f342 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ This is the log of notable changes to EAS CLI and related packages. ### 🎉 New features - Add account type to the items in the prompt to select project owner. ([#2083](https://github.com/expo/eas-cli/pull/2083) by [@alanjhughes](https://github.com/alanjhughes)) +- Add `EXPO_APPLE_TEAM_ID` and `EXPO_APPLE_PROVIDER_ID` support. ([#2091](https://github.com/expo/eas-cli/pull/2091) by [@EvanBacon](https://github.com/EvanBacon)) - Gate roll back to embedded to expo-updates >= 0.19.0. ([#2094](https://github.com/expo/eas-cli/pull/2094) by [@wschurman](https://github.com/wschurman)) ### 🐛 Bug fixes diff --git a/packages/eas-cli/src/credentials/ios/appstore/authenticate.ts b/packages/eas-cli/src/credentials/ios/appstore/authenticate.ts index 6bddc2d41a..b81a3e66f4 100644 --- a/packages/eas-cli/src/credentials/ios/appstore/authenticate.ts +++ b/packages/eas-cli/src/credentials/ios/appstore/authenticate.ts @@ -8,6 +8,7 @@ import { } from '@expo/apple-utils'; import assert from 'assert'; import chalk from 'chalk'; +import { int } from 'getenv'; import Log from '../../../log'; import { toggleConfirmAsync } from '../../../prompts'; @@ -188,7 +189,10 @@ async function authenticateAsUserAsync(options: Options = {}): Promise const authState = await loginAsync( { cookies: options.cookies, - teamId: options.teamId, + teamId: options.teamId ?? process.env.EXPO_APPLE_TEAM_ID, + providerId: process.env.EXPO_APPLE_PROVIDER_ID + ? int(process.env.EXPO_APPLE_PROVIDER_ID) + : undefined, }, { // TODO: Provide a way to disable this for users who want to mix and match teams / providers.