Skip to content

Context

Context #66

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on PR
"on": pull_request
jobs:
build_and_preview:
if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}"
runs-on: ubuntu-latest
steps:
- name: πŸ— Setup repo
uses: actions/checkout@v2
- name: πŸ— Setup Node
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: yarn
- name: πŸ— Setup Expo
uses: expo/expo-github-action@v7
with:
expo-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: πŸ“¦ Install dependencies
run: yarn install
- name: πŸš€ Publish preview
run: expo build:web
# - name: πŸš€ Publish preview
# run: expo publish --release-channel=pr-${{ github.event.number }} --non-interactive
# - name: πŸ’¬ Comment preview
# uses: expo/expo-github-action/preview-comment@v7
# with:
# channel: pr-${{ github.event.number }}
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ORBITING_14A48 }}"
projectId: orbiting-14a48