fix some things #3
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: preview | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
mobile: | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Setup repository | |
uses: actions/checkout@v3 | |
- name: π Setup monorepo | |
uses: ./.github/actions/setup-monorepo | |
with: | |
expo-token: ${{ secrets.EXPO_TOKEN }} | |
- name: π· Build packages | |
run: pnpm run -w build:mobile | |
# You can remove this step if you already configured this | |
# This project shouldn't be pre-configured with this ID, that's why its omitted | |
- name: π· Configure project | |
working-directory: apps/mobile | |
run: | | |
eas init --id d202a56f-0162-450d-af3b-a2d2e0678594 --force --non-interactive | |
echo $(jq '.expo.runtimeVersion.policy = "sdkVersion"' app.json) > app.json | |
- name: π Create preview | |
uses: expo/expo-github-action/preview@v8 | |
with: | |
working-directory: apps/mobile | |
command: eas update --auto --branch=pr-${{ github.event.number }} |