-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(eas): PR을 올렸을 때, 버그 찾기 위해 Preview 보이게 하기 (#137)
개요 - EAS Update 기능을 활용해서, PR마다 branch를 checkout해서 다 확인할 필요없이 자동으로 임시의 Preview를 생성해서 구현 확인을 쉽게하자 - .env.dev는 dev에 들어갈 env를 정의한다. (gitignore에서 제외) - dev-deploy 파이프라인을 만들어서 preview가 development 빌드의 브랜치에서 보일 수 있도록 한다. - i18n에서 호환성 문제로 v3를 사용하도록 설정
- Loading branch information
1 parent
f4a2c02
commit e4b794e
Showing
8 changed files
with
222 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
EXPO_PUBLIC_APP_VARIANT=dev | ||
EXPO_PUBLIC_API_URL=https://difeapp.com/api | ||
EXPO_PUBLIC_WS_URL=wss://difeapp.com/ws | ||
EXPO_PUBLIC_MOCK_LOGIN=true | ||
EXPO_PUBLIC_MOCK_EMAIL=test1@gmail.com | ||
EXPO_PUBLIC_MOCK_PASSWORD=password1234! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Expo PR Branch Preview | ||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
jobs: | ||
preview: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- name: 🏗 Setup repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: 🏗 Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.x | ||
|
||
- name: 🏗 Setup EAS | ||
uses: expo/expo-github-action@v8 | ||
with: | ||
eas-version: latest | ||
token: ${{ secrets.EXPO_TOKEN }} | ||
packager: npm | ||
|
||
- name: 📦 Install dependencies | ||
run: npm install | ||
|
||
- name: 🚀 Create preview with environment variables to development build | ||
run: npm run push-to-dev-with-branch ${{ github.head_ref }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ yarn-error.* | |
*.pem | ||
|
||
# local env files | ||
.env* | ||
.env.local | ||
|
||
# typescript | ||
*.tsbuildinfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.