Skip to content

refactor: Upgrade project core to TypeScript #60

refactor: Upgrade project core to TypeScript

refactor: Upgrade project core to TypeScript #60

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy Frontend - PR Preview
on: pull_request
jobs:
build_and_preview:
if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}"
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend
steps:
- uses: actions/checkout@v3
# Use dev environment so the preview uses the dev server
- run: npm ci && npx env-cmd -f .env.dev npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_SECRET_HITLER_ONLINE }}"
projectId: secret-hitler-online
# no channelId, so deploys to a preview channel
entryPoint: ./frontend