Expo EAS Submit, where to store service account key

Viewed 598

I am looking into using EAS (expo Application Services) to submit a build to the Google Play Store. As per the docs, a serviceAccountKeyPath is required:

https://docs.expo.dev/submit/eas-json/#serviceaccountkeypath

I have successfully submitted a build by running eas submit -p android and entering the path to the JSON service account key when prompted.

As this is sensitive information, I don't want it to be added to my git repo. Should I just add it to my .gitignore, or is there a better way e.g. store it within my expo account somehow?

1 Answers

You only need to provide serviceAccountKeyPath the first time you run eas submit -p android for an specific project. You have to do manually the first time. The next you run eas submit expo takes the previus provided file.

Related