Skip to content

Commit

Permalink
docs: make steps a bit more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Jan 14, 2022
1 parent 461a366 commit 2fb1211
Showing 1 changed file with 38 additions and 14 deletions.
52 changes: 38 additions & 14 deletions preview-comment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ There a few ouput and template variables available for both `message` and `messa
| **projectSlug** | `{projectSlug}` | The resolved slug of the project |
| **projectName** | `{projectName}` | The resolved name of the project |
| **projectLink** | `{projectLink}` | The expo.dev project link, including release channel |
| **projectQR** | `{projectQR}` | The QR code to load the project in Expo Go |
| **projectQR** | `{projectQR}` | The QR code link, to load the project in Expo Go |
| - | `{channel}` | The release channel that was used |
| **message** | - | The resolved message content |
| **messageId** | - | The resolved message id content |
Expand All @@ -83,18 +83,29 @@ jobs:
preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: 🏗 Setup repo
uses: actions/checkout@v2

- name: 🏗 Setup Node
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: yarn
- uses: expo/expo-github-action@v6

- name: 🏗 Setup Expo
uses: expo/expo-github-action@v6
with:
expo-version: 5.x
token: ${{ secrets.EXPO_TOKEN }}
- run: yarn install
- run: expo publish --release-channel=pr-${{ github.event.number }}
- uses: expo/expo-github-action/preview-comment@v6

- name: 📦 Install dependencies
run: yarn install

- name: 🚀 Publish to Expo
run: expo publish --release-channel=pr-${{ github.event.number }}

- name: 💬 Comment in preview
uses: expo/expo-github-action/preview-comment@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -117,23 +128,36 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: 🏗 Setup repo
uses: actions/checkout@v2
- name: 🏗 Setup Node
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: yarn
- uses: expo/expo-github-action@v6
- name: 🏗 Setup Expo
uses: expo/expo-github-action@v6
with:
expo-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- run: yarn install
- run: expo publish --release-channel=production
- uses: expo/expo-github-action/preview-comment@v6
- name: 📦 Install dependencies
run: yarn install
- name: 🚀 Publish to Expo
run: expo publish --release-channel=production
- name: 👷 Create preview comment
uses: expo/expo-github-action/preview-comment@v6
id: preview
with:
comment: false
channel: production
- uses: slackapi/[email protected]
- name: 💬 Comment in Slack
uses: slackapi/[email protected]
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_TOKEN }}
with:
Expand Down

0 comments on commit 2fb1211

Please sign in to comment.