@@ -35,10 +35,10 @@ jobs:
35
35
uses : actions/setup-node@v4
36
36
with :
37
37
node-version : 20.x
38
- cache : " npm "
38
+ cache : " pnpm "
39
39
40
40
- name : " 🧩 Install dependencies (ci)"
41
- run : npm ci
41
+ run : pnpm install --frozen-lockfile
42
42
43
43
# ========================
44
44
# 🔄 Version Management
94
94
# 🔐 EAS Setup & Auth
95
95
# ========================
96
96
- name : " ⚙️ Install EAS CLI"
97
- run : npm install -g eas-cli@latest
97
+ run : pnpm add -g eas-cli@latest
98
98
99
99
- name : " 🔐 Verify Expo Credentials"
100
100
run : npx eas whoami --token $EXPO_TOKEN
@@ -137,16 +137,17 @@ jobs:
137
137
uses : actions/setup-node@v4
138
138
with :
139
139
node-version : 20.x
140
+ cache : " pnpm"
140
141
141
142
- name : " 📦 Install Dependencies"
142
- run : npm ci
143
+ run : pnpm install --frozen-lockfile
143
144
144
145
# ========================
145
146
# 📦 Dependency Management
146
147
# ========================
147
148
- name : " 🧰 Install Build Tools"
148
149
run : |
149
- npm install -g eas-cli@latest
150
+ pnpm add -g eas-cli@latest
150
151
sudo apt-get update
151
152
sudo apt-get install -y jq curl dotenv
152
153
@@ -161,7 +162,7 @@ jobs:
161
162
echo "🔍 Starting build monitoring for BUILD_ID: $BUILD_ID"
162
163
163
164
# Initial check without JSON for better error visibility
164
- npx eas build:view $BUILD_ID || true
165
+ eas build:view $BUILD_ID || true
165
166
166
167
RETRY_COUNT=0
167
168
MAX_RETRIES=120
@@ -171,7 +172,7 @@ jobs:
171
172
echo -e "\n=== Attempt $((RETRY_COUNT+1))/$MAX_RETRIES ==="
172
173
173
174
# Fetch build status in JSON format
174
- BUILD_STATUS_JSON=$(npx eas build:view --json $BUILD_ID)
175
+ BUILD_STATUS_JSON=$(eas build:view --json $BUILD_ID)
175
176
echo "📄 Raw API response: $BUILD_STATUS_JSON"
176
177
177
178
# Validate JSON and check for empty response
@@ -232,7 +233,7 @@ jobs:
232
233
run : |
233
234
echo "🔽 Retrieving APK URL..."
234
235
# Use the build:view command to get a clean JSON response
235
- APK_URL=$(npx eas build:view --json ${{ needs.build-android.outputs.build_id }} | jq -r '.artifacts.buildUrl')
236
+ APK_URL=$(eas build:view --json ${{ needs.build-android.outputs.build_id }} | jq -r '.artifacts.buildUrl')
236
237
if [[ -z "$APK_URL" || "$APK_URL" == "null" ]]; then
237
238
echo "❌ Error: No APK URL found!"
238
239
exit 1
0 commit comments