Skip to content

Commit 07fd600

Browse files
Updated workflow to use pnpm instead of npm.
1 parent 39b17a4 commit 07fd600

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ jobs:
3535
uses: actions/setup-node@v4
3636
with:
3737
node-version: 20.x
38-
cache: "npm"
38+
cache: "pnpm"
3939

4040
- name: "🧩 Install dependencies (ci)"
41-
run: npm ci
41+
run: pnpm install --frozen-lockfile
4242

4343
# ========================
4444
# 🔄 Version Management
@@ -94,7 +94,7 @@ jobs:
9494
# 🔐 EAS Setup & Auth
9595
# ========================
9696
- name: "⚙️ Install EAS CLI"
97-
run: npm install -g eas-cli@latest
97+
run: pnpm add -g eas-cli@latest
9898

9999
- name: "🔐 Verify Expo Credentials"
100100
run: npx eas whoami --token $EXPO_TOKEN
@@ -137,16 +137,17 @@ jobs:
137137
uses: actions/setup-node@v4
138138
with:
139139
node-version: 20.x
140+
cache: "pnpm"
140141

141142
- name: "📦 Install Dependencies"
142-
run: npm ci
143+
run: pnpm install --frozen-lockfile
143144

144145
# ========================
145146
# 📦 Dependency Management
146147
# ========================
147148
- name: "🧰 Install Build Tools"
148149
run: |
149-
npm install -g eas-cli@latest
150+
pnpm add -g eas-cli@latest
150151
sudo apt-get update
151152
sudo apt-get install -y jq curl dotenv
152153
@@ -161,7 +162,7 @@ jobs:
161162
echo "🔍 Starting build monitoring for BUILD_ID: $BUILD_ID"
162163
163164
# Initial check without JSON for better error visibility
164-
npx eas build:view $BUILD_ID || true
165+
eas build:view $BUILD_ID || true
165166
166167
RETRY_COUNT=0
167168
MAX_RETRIES=120
@@ -171,7 +172,7 @@ jobs:
171172
echo -e "\n=== Attempt $((RETRY_COUNT+1))/$MAX_RETRIES ==="
172173
173174
# 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)
175176
echo "📄 Raw API response: $BUILD_STATUS_JSON"
176177
177178
# Validate JSON and check for empty response
@@ -232,7 +233,7 @@ jobs:
232233
run: |
233234
echo "🔽 Retrieving APK URL..."
234235
# 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')
236237
if [[ -z "$APK_URL" || "$APK_URL" == "null" ]]; then
237238
echo "❌ Error: No APK URL found!"
238239
exit 1

0 commit comments

Comments
 (0)