You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/expo-doctor.yml
-10Lines changed: 0 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -28,13 +28,6 @@ jobs:
28
28
name: Expo Doctor (expo)
29
29
runs-on: ubuntu-latest
30
30
31
-
env:
32
-
# Add your other environment variables here, e.g.:
33
-
API_URL: https://dummyjson.com/
34
-
SECRET_KEY: my-secret-key
35
-
VAR_NUMBER: 10
36
-
VAR_BOOL: true
37
-
38
31
steps:
39
32
- name: 📦 Checkout project repo
40
33
uses: actions/checkout@v3
@@ -44,8 +37,5 @@ jobs:
44
37
- name: 📦 Setup Node + PNPM + install deps
45
38
uses: ./.github/actions/setup-node-pnpm-install
46
39
47
-
- name: Run prebuild
48
-
run: pnpm run prebuild ## we only need to run this to generate the badged icon in `.expo` folder
49
-
50
40
- name: 🚑 Run Doctor Checks
51
41
run: rm -rf ios android && pnpm run doctor ## apprently the new update of expo will break if you already have ios and android folders in your project as they will show up a eas warning
* If the validation fails we throw an error and log the error to the console with a detailed message about missed variables
124
146
* If the validation passes we export the merged and parsed env variables to be used in the app.config.ts file as well as a ClientEnv object to be used in the client-side code
`\n❌ Missing variables in .env.${APP_ENV} file, Make sure all required variables are defined in the .env.${APP_ENV} file.`,
140
-
`\n💡 Tip: If you recently updated the .env.${APP_ENV} file and the error still persists, try restarting the server with the -cc flag to clear the cache.`
141
-
);
142
-
thrownewError(
143
-
'Invalid environment variables, Check terminal for more details '
`\n❌ Missing variables in \x1b[1m\x1b[4m\x1b[31m.env.${APP_ENV}\x1b[0m file, Make sure all required variables are defined in the \x1b[1m\x1b[4m\x1b[31m.env.${APP_ENV}\x1b[0m file.`,
174
+
`\n💡 Tip: If you recently updated the .env.${APP_ENV} file and the error still persists, try restarting the server with the -cc flag to clear the cache.`
175
+
);
176
+
thrownewError(
177
+
'Invalid environment variables, Check terminal for more details '
178
+
);
179
+
}
180
+
181
+
Env=parsedWholeEnv.data;
182
+
ClientEnv=clientEnvSchema.parse(_clientEnv);
183
+
}else{
184
+
// Don't worry about TypeScript here; if we don't need to validate the env variables is because we aren't using them
0 commit comments