Skip to content

Commit 78b8824

Browse files
fix(mobile): reject preview builds from v1 source
1 parent 17ad4bf commit 78b8824

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎.github/workflows/mobile-eas-production.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,16 @@ jobs:
141141
args:
142142
- --filter=@t3tools/mobile...
143143
144+
- name: Verify v2 preview source
145+
if: github.event_name == 'workflow_dispatch' && inputs.profile == 'v2-preview'
146+
run: |
147+
node --input-type=module -e '
148+
import * as environment from "./packages/contracts/src/environment.ts";
149+
if (environment.ORCHESTRATION_PROTOCOL_VERSION !== 2) {
150+
throw new Error("V2 previews require a v2 source branch. Select the v2 branch when running this workflow.");
151+
}
152+
'
153+
144154
- name: Expose pnpm
145155
if: steps.expo-token.outputs.present == 'true'
146156
run: |

0 commit comments

Comments
 (0)