Skip to content

feat: add auto release and preview ci #5

feat: add auto release and preview ci

feat: add auto release and preview ci #5

Workflow file for this run

on:
pull_request:
paths:
- '*.js'
- 'package.json'
- 'eas.json'
- 'app.json'
- '.github/workflows/preview.yml'
jobs:
preview:
runs-on: ubuntu-latest
steps:
- name: πŸ— Setup repo
uses: actions/checkout@v3
- name: πŸ— Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm
- name: πŸ— Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: πŸ“¦ Install dependencies
run: npm install
- name: πŸš€ Create preview
uses: expo/expo-github-action/preview@v8
with:
command: eas update --auto --branch ${{ github.event.pull_request.head.ref }}
comment: true
qr-target: 'expo-go'
working-directory: ${{ github.workspace }}
github-token: ${{ secrets.GITHUB_TOKEN }}