Skip to content

Commit d8bba5d

Browse files
fix: Modernize Expo app and fix CI workflows (#201)
This commit modernizes the Expo application by upgrading the Expo SDK to version 53 and updating all relevant dependencies to be compatible with the new SDK. It also fixes the CI/CD workflows that were failing due to a recent folder name change from `frontend` to `mobile`. The following changes were made: - Updated `expo` to `~53.0.20` and other dependencies to compatible versions. - Updated the `working-directory` and `paths` in `.github/workflows/preview.yml` and `.github/workflows/rn-bundle-analysis.yml` from `frontend` to `mobile`. - Updated the package name in `mobile/package.json` from `frontend` to `mobile`. The application was successfully built and run after the changes. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent d164ed5 commit d8bba5d

File tree

4 files changed

+444
-375
lines changed

4 files changed

+444
-375
lines changed

.github/workflows/preview.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929

3030
- name: Install dependencies
3131
run: npm install
32-
working-directory: ./frontend
32+
working-directory: mobile/
3333

3434
- name: Create preview
3535
uses: expo/expo-github-action/preview@v8
3636
with:
3737
command: eas update --auto --branch ${{ github.event.pull_request.head.ref }}
38-
working-directory: ./frontend
38+
working-directory: mobile/

.github/workflows/rn-bundle-analysis.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: React Native Bundle Analysis
33
on:
44
pull_request:
55
paths:
6-
- 'frontend/**'
6+
- 'mobile/**'
77
branches: [ main, master ]
88
push:
99
paths:
10-
- 'frontend/**'
10+
- 'mobile/**'
1111
branches: [ main, master ]
1212

1313
jobs:
@@ -24,7 +24,7 @@ jobs:
2424
with:
2525
node-version: '18'
2626
cache: 'npm'
27-
cache-dependency-path: frontend/package-lock.json
27+
cache-dependency-path: mobile/package-lock.json
2828

2929
- name: Setup EAS
3030
uses: expo/expo-github-action@v8
@@ -34,10 +34,10 @@ jobs:
3434

3535
- name: Install Dependencies
3636
run: npm install
37-
working-directory: ./frontend
37+
working-directory: mobile/
3838

3939
- name: Analyze React Native Bundle Size
40-
working-directory: ./frontend
40+
working-directory: mobile/
4141
run: |
4242
echo "📊 Analyzing React Native bundle size..."
4343
@@ -105,11 +105,11 @@ jobs:
105105
fi
106106
107107
- name: Upload RN Bundle Analysis Report
108-
if: always() && hashFiles('frontend/bundle-analysis.md') != ''
108+
if: always() && hashFiles('mobile/bundle-analysis.md') != ''
109109
uses: actions/upload-artifact@v4
110110
with:
111111
name: rn-bundle-analysis-report
112-
path: frontend/bundle-analysis.md
112+
path: mobile/bundle-analysis.md
113113
retention-days: 30
114114

115115
- name: RN Bundle Analysis Skipped

0 commit comments

Comments
 (0)