Skip to content

Commit 4caa4ea

Browse files
committed
fix: Ensure source maps are uploaded to sentry for web builds
1 parent e211e8a commit 4caa4ea

6 files changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/android-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
ANDROID_UPLOAD_STORE_PASSWORD=${{secrets.ANDROID_KEYSTORE_PASS}}
8484
ANDROID_UPLOAD_KEY_ALIAS=liftlog
8585
ANDROID_UPLOAD_KEY_PASSWORD=${{secrets.ANDROID_KEYSTORE_PASS}}
86-
DISPLAY_VERSION=${{ github.event.release.name || '3.0.0-beta' }}
86+
DISPLAY_VERSION=${{ github.event.release.name }}
8787
BUILD_NUMBER=${{ steps.buildNumber.outputs.build-number }}
8888
- name: upload binaries to release
8989
uses: softprops/action-gh-release@v1

.github/workflows/web-publish.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010

1111
jobs:
1212
build:
13+
env:
14+
SENTRY_AUTH_TOKEN: ${{secrets.SENTRY_AUTH_TOKEN_REACT}}
1315
runs-on: ubuntu-latest
1416
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
1517
permissions:
@@ -23,16 +25,21 @@ jobs:
2325

2426
steps:
2527
- uses: actions/checkout@v4
28+
- name: Setup Node
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: "22"
32+
cache: npm
33+
cache-dependency-path: ./app/package-lock.json
2634
- name: Install
2735
run: npm ci
2836
working-directory: ./app
2937
- name: Build
3038
run: npm run build:web
3139
working-directory: ./app
32-
- name: Copy 404 page
33-
run: cp ./assets/404.html ./app/dist
34-
- name: Copy Well known
35-
run: cp -r ./assets/.well-known ./app/dist/.well-known
40+
- name: Upload source maps
41+
run: npx sentry-expo-upload-sourcemaps dist
42+
working-directory: ./app
3643
- name: Upload pages
3744
uses: actions/upload-pages-artifact@v3
3845
with:

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"start": "expo start",
77
"prebuild": "expo prebuild",
88
"build:android:release": "./android/gradlew assembleRelease",
9-
"build:web": "expo export -p web",
9+
"build:web": "expo export -p web --source-maps",
1010
"android": "expo run:android",
1111
"android:release": "expo run:android --variant release",
1212
"ios": "expo run:ios",
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)