update workflow #7
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: Expo Preview Build | |
on: | |
push: | |
branches: | |
- v2 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
EXPO_USE_FAST_RESOLVER: true # Use the faster Metro resolver in SDK 51 | |
jobs: | |
build-preview: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- name: 🏗 Setup repository | |
uses: actions/checkout@v4 | |
- name: 🏗 Setup monorepo | |
uses: ./.github/actions/setup-monorepo | |
with: | |
expo-token: ${{ secrets.EXPO_TOKEN }} | |
- name: 👷 Build packages | |
run: pnpm run -w build:example | |
- name: 🚀 Create preview | |
uses: expo/expo-github-action/preview@v8 | |
with: | |
working-directory: apps/example | |
command: eas update --auto --branch=pr-${{ github.event.number }} |