Skip to content

Commit 712cb95

Browse files
Verbose logging to build job.
1 parent f3b11bc commit 712cb95

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/eas-android-build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,17 @@ jobs:
3131
- name: Install EAS CLI
3232
run: npm install -g eas-cli@latest
3333

34+
- name: Debug Expo Authentication
35+
run: |
36+
echo "Checking Expo authentication..."
37+
npx eas whoami --token $EXPO_TOKEN || echo "Expo token is invalid!"
38+
3439
- name: Start EAS Build (With Logs)
3540
id: build
3641
run: |
3742
echo "Starting EAS build..."
3843
39-
BUILD_JSON=$(npx eas build -p android --profile production --non-interactive --json --verbose)
44+
BUILD_JSON=$(npx eas build -p android --profile production --non-interactive --json --verbose 2>&1)
4045
echo "EAS build response: $BUILD_JSON"
4146
4247
BUILD_ID=$(echo "$BUILD_JSON" | jq -r '.[0].id' 2>/dev/null)
@@ -51,7 +56,6 @@ jobs:
5156
5257
echo "Streaming build logs..."
5358
npx eas build:logs --build-id $BUILD_ID
54-
5559
env:
5660
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
5761

0 commit comments

Comments
 (0)