Skip to content

eas credentials does not use environment variables from eas.json #820

@gerwim

Description

@gerwim

Summary

When running eas credentials and selecting the profile, it does not respect the env property from eas.json.

Environment

 EAS CLI 0.38.3 environment info:
    System:
      OS: Windows 10 10.0.22000
    Binaries:
      Node: 14.18.0 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.15 - ~\AppData\Roaming\npm\yarn.CMD
      npm: 6.14.15 - C:\Program Files\nodejs\npm.CMD
    Utilities:
      Git: 2.31.1.
    npmPackages:
      expo: ^43.0.0 => 43.0.3
      expo-dev-client: ~0.6.3 => 0.6.3
      react: 17.0.1 => 17.0.1
      react-dom: 17.0.1 => 17.0.1
      react-native: 0.64.3 => 0.64.3
      react-native-web: 0.17.1 => 0.17.1

Error output

Using build profile: development
    Error: Specify "ios.bundleIdentifier" in app.config.js or app.json and run this command again.

Reproducible demo or steps to reproduce from a blank project

Init a project with this eas.json file:

{
  "cli": {
    "version": ">= 0.38.3"
  },
  "build": {
    "development": {
      "developmentClient": true,
      "distribution": "internal",
      "env": {
        "BUNDLE_IDENTIFIER": "my.app.development"
      }
    },
    "preview": {
      "distribution": "internal"
    },
    "production": {}
  },
  "submit": {
    "production": {}
  }
}

Have this app.config.js:

export default ({ config }) => {
    return {
        ...config,
        ios: {
            ...config.ios,
            bundleIdentifier: process.env.BUNDLE_IDENTIFIER,
        }
    };
};

This actually works with eas build, but eas credentials does not use the env vars properly.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions