fix: Update packages #51
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
# 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 |