Feat/streamer live page #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build preview for pull requests | |
on: | |
push: | |
# REQUIRED: push main(default) branch is necessary for this action to update its fingerprint database | |
branches: [main] | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
concurrency: fingerprint-${{ github.event_name != 'pull_request' && 'main' || github.run_id }} | |
permissions: | |
pull-requests: write # Allow comments on PRs | |
actions: write # Allow updating fingerprint in acton caches | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: 🏗 Setup EAS | |
uses: expo/expo-github-action@v8 | |
with: | |
eas-version: latest | |
token: ${{ secrets.FOAM_RELEASE_TOKEN }} | |
- name: Install dependencies | |
run: yarn install | |
- name: Create preview builds if needed | |
uses: expo/expo-github-action/preview-build@main | |
with: | |
command: eas build --profile preview --platform all | |
github-token: ${{ secrets.FOAM_GITHUB_TOKEN }} | |
comment: true |