Skip to content

Commit

Permalink
fix looking up process.env[process.env.EXPO_APPLE_PROVIDER_ID]
Browse files Browse the repository at this point in the history
  • Loading branch information
louix committed Apr 29, 2024
1 parent 7ed62ec commit 0d2adc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ This is the log of notable changes to EAS CLI and related packages.
### 🐛 Bug fixes

- Add explicit workflow arg to expo-update CLI calls. ([#2340](https://github.com/expo/eas-cli/pull/2340) by [@wschurman](https://github.com/wschurman))
- Correctly parse the EXPO_APPLE_PROVIER_ID environment variable. ([#2349](https://github.com/expo/eas-cli/pull/2349) by [@louix](https://github.com/louix))

### 🧹 Chores

Expand Down
4 changes: 2 additions & 2 deletions packages/eas-cli/src/credentials/ios/appstore/authenticate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from '@expo/apple-utils';
import assert from 'assert';
import chalk from 'chalk';
import { int } from 'getenv';
import * as getenv from 'getenv';

import {
ApiKeyAuthCtx,
Expand Down Expand Up @@ -191,7 +191,7 @@ async function authenticateAsUserAsync(options: Options = {}): Promise<AuthCtx>
cookies: options.cookies,
teamId: options.teamId ?? process.env.EXPO_APPLE_TEAM_ID,
providerId: process.env.EXPO_APPLE_PROVIDER_ID
? int(process.env.EXPO_APPLE_PROVIDER_ID)
? getenv.int('EXPO_APPLE_PROVIDER_ID')
: undefined,
},
{
Expand Down

0 comments on commit 0d2adc6

Please sign in to comment.