expo / expo/expo-github-action

Add eas.json contents as step output

Open
#155 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1k
Forks
107
PR merge metrics
No merged PRs in 30d

Description

### Description of the feature
The action could output the eas.json contents so it can be reused by other steps

### Motivation
I would like to use `expo publish` to the production release channel

### Additional context
This is my current workaround:

```
- name: 🏗 Setup Expo and EAS
uses: expo/expo-github-action@v7

- name: 📦 Install dependencies
run: yarn install

- name: 🏗 Release channel
uses: sergeysova/jq-action@v2
id: releaseChannel
with:
cmd: 'jq .build.production.releaseChannel eas.json -r'

- name: 🚀 Publish app
run: expo publish --non-interactive --release-channel=${{ steps.releaseChannel.outputs.value }}
```

Suggested workflow:

```
- name: 🏗 Setup Expo and EAS
uses: expo/expo-github-action@v7
id: expo

- name: 📦 Install dependencies
run: yarn install

- name: 🚀 Publish app
run: expo publish --non-interactive --release-channel=${{ steps.expo.eas.build.production.releaseChannel }}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.