Skip to content

Commit

Permalink
Final user update
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjustshubh committed Feb 4, 2024
1 parent 0a32229 commit 785267d
Showing 1 changed file with 17 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,9 @@ on: push

jobs:
update:
name: EAS Update
name: EAS Update for Frontend
runs-on: ubuntu-latest
steps:
- name: Check for EXPO_TOKEN
run: |
if [ -z "${{ secrets.EXPO_TOKEN }}" ]; then
echo "You must provide an EXPO_TOKEN secret linked to this project's Expo account in this repo's secrets. Learn more: https://docs.expo.dev/eas-update/github-actions"
exit 1
fi
- name: Checkout repository
uses: actions/checkout@v3

Expand All @@ -22,14 +15,27 @@ jobs:
node-version: 18.x
cache: yarn

# Navigate to the frontend directory
- name: Change to frontend directory
run: cd path/to/frontend

- name: Check for EXPO_TOKEN
run: |
if [ -z "${{ secrets.EXPO_TOKEN }}" ]; then
echo "You must provide an EXPO_TOKEN secret linked to this project's Expo account in this repo's secrets. Learn more: https://docs.expo.dev/eas-update/github-actions"
exit 1
fi
- name: Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}

- name: Install dependencies
- name: Install frontend dependencies
run: yarn install
working-directory: ./path/to/frontend

- name: Publish update
run: eas update --auto
- name: Publish frontend update
run: eas update --auto
working-directory: ./path/to/frontend

0 comments on commit 785267d

Please sign in to comment.