Skip to content

Commit b69e035

Browse files
committed
fix: NODE_OPTIONS=--no-experimental-strip-types for all EAS commands
Node 24 tries to strip TypeScript from .ts files in node_modules, breaking expo-modules-core. Inline NODE_OPTIONS on every eas command.
1 parent f09df43 commit b69e035

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/mobile.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ jobs:
5353

5454
- name: Check EXPO_TOKEN
5555
id: check
56+
env:
57+
NODE_OPTIONS: "--no-experimental-strip-types"
5658
run: |
5759
if [ -z "${{ secrets.EXPO_TOKEN }}" ]; then
5860
echo "skip=true" >> "$GITHUB_OUTPUT"
@@ -76,7 +78,7 @@ jobs:
7678
PROFILE="production"
7779
fi
7880
echo "Building iOS with profile: $PROFILE"
79-
eas build --platform ios --profile $PROFILE --non-interactive
81+
NODE_OPTIONS="--no-experimental-strip-types" eas build --platform ios --profile $PROFILE --non-interactive
8082
8183
- name: Submit to TestFlight
8284
if: steps.check.outputs.skip != 'true' && (inputs.submit || startsWith(github.ref, 'refs/tags/v'))
@@ -126,7 +128,7 @@ jobs:
126128
PROFILE="production"
127129
fi
128130
echo "Building Android with profile: $PROFILE"
129-
eas build --platform android --profile $PROFILE --non-interactive
131+
NODE_OPTIONS="--no-experimental-strip-types" eas build --platform android --profile $PROFILE --non-interactive
130132
131133
- name: Submit to Google Play
132134
if: steps.check.outputs.skip != 'true' && (inputs.submit || startsWith(github.ref, 'refs/tags/v'))
@@ -171,7 +173,7 @@ jobs:
171173
if: steps.check.outputs.skip != 'true'
172174
run: |
173175
VERSION=$(node -p "require('../package.json').version")
174-
eas update --branch preview --message "v${VERSION}" --non-interactive
176+
NODE_OPTIONS="--no-experimental-strip-types" eas update --branch preview --message "v${VERSION}" --non-interactive
175177
continue-on-error: true
176178

177179
- name: Get build URLs

0 commit comments

Comments
 (0)