name: Preview

on: [pull_request]

jobs:
  deploy_preview:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - run: npm install
      - run: npm run build
      - uses: FirebaseExtended/action-hosting-deploy@v0
        with:
          repoToken: "${{ secrets.GITHUB_TOKEN }}"
          firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
          projectId: v8-dev
          expires: 30d
        env:
          FIREBASE_CLI_PREVIEWS: hostingchannels

Build and deploy PR previews
Build and deploy PR previews
