-
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.
- Loading branch information
1 parent
78c30d3
commit f2c0425
Showing
1 changed file
with
29 additions
and
27 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 |
---|---|---|
|
@@ -3,34 +3,36 @@ on: push | |
|
||
jobs: | ||
update: | ||
name: EAS update | ||
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: EAS Update | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
cache: yarn | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version : 18.x | ||
cache: yarn | ||
- name: expo Login | ||
uses: expo login -u [email protected] -p ZWz9glhg1Hj0o9yRhO7HBC3gkKLLIRiQ59dLCxo2aURTux92py | ||
- name: Setup EAS | ||
uses: expo/expo-github-action@v8 | ||
with: | ||
eas-version: latest | ||
token: n5mAjBGWGe3H20wx9Vcp7AN20L1U80WIDVes0Aao | ||
|
||
- name: Setup EAS | ||
uses: expo/expo-github-actions@v8 | ||
with: | ||
eas-version: latest | ||
token: ${{ secrets.EXPO_TOKEN }} | ||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Install Dependancies | ||
run: yarn Install | ||
|
||
- name: Publish Update | ||
run: eas update --auto | ||
|
||
- name: 🚀 Create preview | ||
uses: expo/expo-github-action/preview@v8 | ||
with: | ||
# `github.event.pull_request.head.ref` is only available on `pull_request` triggers. | ||
# Use your own, or keep the automatically inferred branch name from `--auto`, when using different triggers. | ||
command: eas update --auto --branch ${{ github.event.pull_request.head.ref }} | ||
|