Skip to content

Commit 2196acb

Browse files
committed
update eas envs and README
1 parent 7d94c7b commit 2196acb

File tree

6 files changed

+16
-21
lines changed

6 files changed

+16
-21
lines changed

.github/workflows/code-quality.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: 🔎 Code Quality
22

33
env:
4-
EXPO_PUBLIC_API_URL: ${{ vars.API_URL }}
5-
EXPO_PUBLIC_AUTH_URL: ${{ vars.AUTH_URL }}
6-
EXPO_PUBLIC_OPENAPI_URL: ${{ vars.OPENAPI_URL }}
4+
BASE_URL: ${{ vars.BASE_URL }}
75

86
on:
97
push:

.github/workflows/eas-development-build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: 🔨 EAS build
22

33
env:
4-
EXPO_PUBLIC_API_URL: ${{ vars.API_URL }}
5-
EXPO_PUBLIC_AUTH_URL: ${{ vars.AUTH_URL }}
6-
EXPO_PUBLIC_OPENAPI_URL: ${{ vars.OPENAPI_URL }}
4+
BASE_URL: ${{ vars.BASE_URL }}
75

86
on:
97
push:

.github/workflows/eas-preview.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: 📱 EAS Preview
22

33
env:
4-
EXPO_PUBLIC_API_URL: ${{ vars.API_URL }}
5-
EXPO_PUBLIC_AUTH_URL: ${{ vars.AUTH_URL }}
6-
EXPO_PUBLIC_OPENAPI_URL: ${{ vars.OPENAPI_URL }}
4+
BASE_URL: ${{ vars.BASE_URL }}
75

86
on: [pull_request]
97
jobs:

.github/workflows/eas-production-build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: 🔨 EAS build
22

33
env:
4-
EXPO_PUBLIC_API_URL: ${{ vars.API_URL }}
5-
EXPO_PUBLIC_AUTH_URL: ${{ vars.AUTH_URL }}
6-
EXPO_PUBLIC_OPENAPI_URL: ${{ vars.OPENAPI_URL }}
4+
BASE_URL: ${{ vars.BASE_URL }}
75

86
on: workflow_dispatch
97

.github/workflows/eas-production-update.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: 🚀 EAS update
22

33
env:
4-
EXPO_PUBLIC_API_URL: ${{ vars.API_URL }}
5-
EXPO_PUBLIC_AUTH_URL: ${{ vars.AUTH_URL }}
6-
EXPO_PUBLIC_OPENAPI_URL: ${{ vars.OPENAPI_URL }}
4+
BASE_URL: ${{ vars.BASE_URL }}
75

86
on: workflow_dispatch
97

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,21 +116,26 @@ If you want to use the same set of custom duotone icons that Start UI is already
116116
> [!WARNING]
117117
> All svg icons should be svg files prefixed by `icon-` (example: `icon-externel-link`) with **square size** and **filled with `#000` color** (will be replaced by `currentColor`).
118118
119-
# EAS Preview
120119

121-
To be able to use previews on PR, you have to setup your project with EAS
120+
# EAS
121+
122+
## Installation
123+
124+
> [!TIP]
125+
> To be able to use previews on PR, you have to setup your project with EAS
122126
123127
1. Setup Expo access token
124128
* Create it: https://expo.dev/accounts/{account}/settings/access-tokens
125129
* Add it as GitHub repository secrets: https://github.com/xxx/xxx/settings/secrets/actions
126130
2. Add GitHub repository variables: https://github.com/xxx/xxx/settings/variables/actions
127-
* `API_URL`
128-
* `AUTH_URL`
129-
* `OPENAPI_URL`
131+
* `BASE_URL`
130132
3. Setup Expo project: https://expo.dev/
131133
* Create your project
132134
* Get project's id
133-
* Set as `EXPO_PROJECT_ID` in `app.config.ts`
135+
* Set as `EAS_PROJECT_ID` in `app.config.ts`
136+
* Setup environment variables for each environment :
137+
* `APP_ENV`
138+
* `EXPO_PUBLIC_BASE_URL`
134139
4. Setup eas
135140
* `eas login`
136141
* `eas init --id {projectid}`

0 commit comments

Comments
 (0)