Skip to content

Commit 6dd9eee

Browse files
authored
Merge pull request #10 from Naren456/dev
bug fixes
2 parents c7669bf + 2c166ab commit 6dd9eee

2 files changed

Lines changed: 16 additions & 9 deletions

File tree

.github/workflows/eas-update.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,17 @@ jobs:
99
update:
1010
name: EAS Update
1111
runs-on: ubuntu-latest
12+
1213
defaults:
1314
run:
1415
working-directory: ./Frontend
1516

17+
env:
18+
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
19+
EXPO_PUBLIC_GOOGLE_CLIENT_ID: ${{ secrets.EXPO_PUBLIC_GOOGLE_CLIENT_ID }}
20+
EXPO_PUBLIC_IOS_URL_SCHEME: ${{ secrets.EXPO_PUBLIC_IOS_URL_SCHEME }}
21+
EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID: ${{ secrets.EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID }}
22+
1623
steps:
1724
- name: Checkout repository
1825
uses: actions/checkout@v4
@@ -21,12 +28,10 @@ jobs:
2128
uses: actions/setup-node@v4
2229
with:
2330
node-version: 20.x
24-
# Removing the cache for one run can help clear "sticky" version issues
2531
cache: 'npm'
2632
cache-dependency-path: ./Frontend/package-lock.json
2733

28-
# This forces the runner to use the npm version bundled with Node 20
29-
- name: Force NPM & Disable Corepack (Yarn)
34+
- name: Force NPM & Disable Corepack
3035
run: |
3136
npm install -g npm@latest
3237
node -v
@@ -37,12 +42,13 @@ jobs:
3742
with:
3843
eas-version: latest
3944
token: ${{ secrets.EXPO_TOKEN }}
40-
# EXPLICITLY TELL EXPO ACTION NOT TO USE YARN
4145
packager: npm
4246

4347
- name: Install dependencies
44-
# Use --foreground-scripts to ensure engines are checked correctly
45-
run: npm ci
48+
run: npm ci --legacy-peer-deps
4649

4750
- name: Publish update
48-
run: eas update --branch production --message "Update from GitHub Actions"
51+
# We use a pipe (|) to treat the following text as a literal block,
52+
# which prevents YAML parsing errors with colons and special characters.
53+
run: |
54+
npx eas-cli update --branch production --message "GitHub Update - ${{ github.event.head_commit.message }}"

Frontend/eas.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"cli": {
3-
"version": ">= 6.0.0"
3+
"version": ">= 6.0.0",
4+
"appDirectory": "Frontend"
45
},
56
"build": {
67
"development": {
@@ -30,4 +31,4 @@
3031
"submit": {
3132
"production": {}
3233
}
33-
}
34+
}

0 commit comments

Comments
 (0)