expo-github-action
expo-github-action copied to clipboard
'EAS build' fails via github action. Succeeds via local terminal.
Description of the bug
'EAS build' fails when run via github action. 'EAS build' succeeds when run via local terminal.
To Reproduce
What steps did you perform which led to this issue?
- Set up GitHub Action with this yml, which I've named 'eas-build-on-push.yml':
name: EAS Build on Push to Main
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
- name: Log working directory after checkout
run: pwd
- name: 🏗 Setup Node
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: client/package-lock.json
- name: Log working directory after setup Node
run: pwd
- name: 🏗 Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: 📦 Install dependencies
run: npm install
working-directory: client
- name: Log working directory after install dependencies
run: pwd
working-directory: client
- name: 🚀 Build app
run: eas build -p android -e test
working-directory: client
- name: Log working directory after build
run: pwd
working-directory: client
- Push from my local computer
- EAS build starts
- EAS build fails. Here is an extract of the output from expo.dev builds:
Expected behavior
EAS build is successful. If I execute eas build from my local terminal on the same commit, the build is successful.
Actual behavior
Build is not successful.
Additional context
I suspect the issue may relate to my folder structure.
Relevant folders from my root are: .github/workflows .git/ /client/ /server/
Package-lock.json is here: /client/package-lock.json
Working directory logs from expo (screenshot is from github action executing eas build):