You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feature: add comment subaction for qr code previews
* chore: rebuild project
* chore: setup test for comment subaction
* fix: add missing metadata for the comment subaction
* fix: path to entrypoint in comment subaction
* fix: add test overwrite
* fix: resolve the owner silently
* fix: avoid double error: in failed actions
* fix: add missing github token
* chore: rebuild project
* chore: rebuild project
* fix: newline in project owner
* feature: add outputs to allow customization and rename
* fix: failing test
* chore: rebuild project
* chore: tweak the comment a bit more
* docs: add documentation for preview comment
* docs: add message about comment message id
* docs: fix typo in output reuse
* docs: add missing message id to outputs
* docs: make steps a bit more readable
* docs: update github actions version
* chore: make test workflow more readable
* test: add missing comment preview tests
* chore: rebuild project
* test: separate each output
* docs: update readme
* chore: remove unnecessary comments
* docs: use new table format
* docs: update name to match value in actions
* docs: use relative path to preview-comment action
* fix: use project owner in default comment id
* docs: move unimportant stuff around
* docs: last pass over readmes
|**expo-version**| - | Expo CLI version to install _(skips when omitted)_|
40
+
|**expo-cache**|`true`| If it should use the GitHub actions cache ([read more](#using-the-built-in-cache)) |
41
+
|**eas-version**| - | EAS CLI version to install _(skips when omitted)_|
42
+
|**eas-cache**|`true`| If it should use the GitHub actions cache ([read more](#using-the-built-in-cache)) |
43
+
|**packager**|`yarn`| Package manager to use _(e.g. `yarn` or `npm`)_|
44
+
|**token**| - | Token of your Expo account _(only use with [secrets][link-actions-secrets])_|
45
+
|**patch-watchers**|`true`| If it should patch the `fs.inotify.*` limits on Ubuntu ([read more](#enospc-errors-on-linux)) |
50
46
51
47
## Example workflows
52
48
53
-
Before you dive into the workflow examples, you should know the basics of GitHub Actions.
49
+
Before diving into the workflow examples, you should know the basics of GitHub Actions.
54
50
You can read more about this in the [GitHub Actions documentation][link-actions].
55
51
56
52
1.[Publish on any push to main](#publish-on-any-push-to-main)
57
53
2.[Creating a new EAS build](#creating-a-new-eas-build)
58
-
3.[Test PRs and publish a review version](#test-prs-and-publish-a-review-version)
59
-
4.[Test PRs on multiple nodes and systems](#test-prs-on-multiple-node-versions-and-systems)
54
+
3.[Publish a preview from PR](#publish-a-preview-from-PR)
60
55
61
56
### Publish on any push to main
62
57
63
-
Below you can see the example configuration to publish whenever the main branch is updated.
64
-
The workflow listens to the `push` event and sets up Node 14 using the [Setup Node Action][link-actions-node].
65
-
It also auto-authenticates when the `token` is provided.
58
+
This workflow listens to the `push` event on the `main` branch.
59
+
It sets up all required components to publish the app, including authentication with a token.
60
+
61
+
> Always use [secrets][link-actions-secrets] when using tokens.
66
62
67
63
```yml
68
64
on:
@@ -73,26 +69,35 @@ jobs:
73
69
publish:
74
70
runs-on: ubuntu-latest
75
71
steps:
76
-
- uses: actions/checkout@v2
77
-
- uses: actions/setup-node@v2
72
+
- name: 🏗 Setup repo
73
+
uses: actions/checkout@v2
74
+
75
+
- name: 🏗 Setup Node
76
+
uses: actions/setup-node@v2
78
77
with:
79
78
node-version: 16.x
80
79
cache: yarn
81
-
- uses: expo/expo-github-action@v6
80
+
81
+
- name: 🏗 Setup Expo
82
+
uses: expo/expo-github-action@v7
82
83
with:
83
84
expo-version: 5.x
84
85
token: ${{ secrets.EXPO_TOKEN }}
85
-
- run: yarn install
86
-
- run: expo publish
86
+
87
+
- name: 📦 Install dependencies
88
+
run: yarn install
89
+
90
+
- name: 🚀 Publish app
91
+
run: expo publish
87
92
```
88
93
89
94
### Creating a new EAS build
90
95
91
-
You can also install [EAS](https://docs.expo.dev/eas/) CLI with this GitHub Action.
92
-
Below we've swapped `expo-version` with `eas-version`, but you can also use them together.
93
-
Both the `token` and `username`/`password` is shared between both Expo and EAS CLI.
96
+
This action also allows you to install the EAS CLI.
97
+
To do this, add the **eas-version** property, and the action will install it.
98
+
We recommend using `latest` for the EAS CLI.
94
99
95
-
> We recommend using `latest` for `eas-version` to always have the most up-to-date version.
100
+
> The **token** is shared for both Expo and EAS CLI.
96
101
97
102
```yml
98
103
on:
@@ -103,107 +108,97 @@ jobs:
103
108
build:
104
109
runs-on: ubuntu-latest
105
110
steps:
106
-
- uses: actions/checkout@v2
107
-
- uses: actions/setup-node@v2
111
+
- name: 🏗 Setup repo
112
+
uses: actions/checkout@v2
113
+
114
+
- name: 🏗 Setup Node
115
+
uses: actions/setup-node@v2
108
116
with:
109
117
node-version: 16.x
110
118
cache: yarn
111
-
- uses: expo/expo-github-action@v6
119
+
120
+
- name: 🏗 Setup Expo
121
+
uses: expo/expo-github-action@v7
112
122
with:
113
123
eas-version: latest
124
+
expo-version: 5.x
114
125
token: ${{ secrets.EXPO_TOKEN }}
115
-
- run: yarn install
116
-
- run: eas build
126
+
127
+
- name: 📦 Install dependencies
128
+
run: yarn install
129
+
130
+
- name: 🚀 Build app
131
+
run: eas build
117
132
```
118
133
119
-
### Test PRs and publish a review version
134
+
### Publish a preview from PR
120
135
121
-
Reviewing pull requests can take some time if you have to read every line of code.
122
-
To make this easier, you can publish the edited version of the PR using a [release channel][link-expo-release-channels].
123
-
Below you can see an example of a workflow that publishes and comments on te PR when the app is published.
136
+
Reviewing pull requests can take some time.
137
+
The reviewer needs to check out the branch, install the changes, and run the bundler to review the results.
138
+
You can also automatically publish the project for the reviewer to skip those manual steps.
139
+
140
+
This workflow publishes the changes on the `pr-#` [release channel][link-expo-release-channels] and adds a comment to the pull request once it's ready for review.
141
+
142
+
> See the [preview-comment docs](./preview-comment).
0 commit comments