Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue using Expo Update in GitHub Actions, says I haven't ran eas init #1779

Closed
henrymoulton opened this issue Apr 7, 2023 · 3 comments
Closed
Labels
eas update needs review Issue is ready to be reviewed by a maintainer

Comments

@henrymoulton
Copy link

henrymoulton commented Apr 7, 2023

Build/Submit details page URL

No response

Summary

my stuff(1)

Part of my config has:

    "name": "Name",
    "slug": "name",
    "extra": {
      "eas": {
        "projectId": "id"
      }
    },

Managed or bare?

bare

Environment

  expo-env-info 1.0.5 environment info:
    System:
      OS: macOS 13.3
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 16.14.0 - ~/.nvm/versions/node/v16.14.0/bin/node
      Yarn: 1.22.17 - /opt/homebrew/bin/yarn
      npm: 8.3.1 - ~/.nvm/versions/node/v16.14.0/bin/npm
      Watchman: 2023.02.06.00 - /opt/homebrew/bin/watchman
    Managers:
      CocoaPods: 1.11.3 - /Users/henrymoulton/.rbenv/shims/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
    IDEs:
      Android Studio: 2022.1 AI-221.6008.13.2211.9619390
      Xcode: 14.3/14E222b - /usr/bin/xcodebuild
    npmPackages:
      expo: ^47.0.0 => 47.0.12 
      react: 18.1.0 => 18.1.0 
      react-native: 0.70.8 => 0.70.8 
    npmGlobalPackages:
      eas-cli: 3.9.0
      expo-cli: 6.0.8
    Expo Workflow: bare
expo doctor
┌─────────────────────────────────────────────────────────────────────────┐
│                                                                         │
│   There is a new version of expo-cli available (6.3.2).                 │
│   You are currently using expo-cli 6.0.8                                │
│   Install expo-cli globally using the package manager of your choice;   │
│   for example: `npm install -g expo-cli` to get the latest version      │
│                                                                         │
└─────────────────────────────────────────────────────────────────────────┘
Expected package @expo/config-plugins@^5.0.2
Found invalid:
  @expo/config-plugins@4.1.5
  @expo/config-plugins@4.1.5
  (for more info, run: npm why @expo/config-plugins)
Some dependencies are incompatible with the installed expo package version:
 - @shopify/flash-list - expected version: 1.3.1 - actual version installed: 1.4.1
 - expo-av - expected version: ~13.0.3 - actual version installed: 13.0.2
 - expo-linking - expected version: ~3.3.1 - actual version installed: 3.3.0
 - expo-location - expected version: ~15.0.1 - actual version installed: 15.1.1
 - react-native-maps - expected version: 1.3.2 - actual version installed: 1.4.0
 - react-native-reanimated - expected version: ~2.12.0 - actual version installed: 2.13.0

Error output

image

Reproducible demo or steps to reproduce from a blank project

Haven't been able to get to a reproducible demo yet.

@henrymoulton henrymoulton added the needs review Issue is ready to be reviewed by a maintainer label Apr 7, 2023
@henrymoulton henrymoulton changed the title Issue using Expo Update in GitHub Actions Issue using Expo Update in GitHub Actions, says I haven't ran eas init Apr 7, 2023
@byCedric
Copy link
Member

byCedric commented Apr 7, 2023

Hi @henrymoulton! Unfortunately, I can't seem to reproduce this error. You can see the full github actions output and the project I've used here: byCedric/expo-monorepo-example#95

Can you provide a repository or repro in any way?

@byCedric
Copy link
Member

Closing in favor of expo/expo-github-action#218

The error was caused because the working-directory was omitted. It's not really clear that the default working-directory does not apply to plugins in GitHub actions.

defaults:
  run:
    working-directory: <sub-path>

@moosthuizen42
Copy link

moosthuizen42 commented Sep 5, 2023

Posting here for posterity. We have a monorepo, where ./app contains the Expo project itself. Changing

- name: 📦 Install dependencies
  run: yarn install

- name: 🚀 Build app
  run: eas build -e preview -p android --non-interactive

to

- name: 📦 Install dependencies
  working-directory: ./app
  run: yarn install

- name: 🚀 Build app
  working-directory: ./app
  run: eas build -e preview -p android --non-interactive

was the solution for us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
eas update needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

4 participants