Skip to content

[Snyk] Upgrade: ,

[Snyk] Upgrade: , #299

# 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:
env:
API_KEY: ${{ secrets.API_KEY }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
AUTO_FILL_ENDPOINT: ${{ secrets.AUTO_FILL_ENDPOINT }}
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest
permissions:
deployments: write
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v3
- name: Create GitHub deployment
uses: chrnorm/deployment-action@v2.0.5
id: deployment
with:
token: '${{ secrets.GITHUB_TOKEN }}'
environment-url: https://free-location-sheet-staging-fd228.web.app/
environment: staging
- name: Setup Ruby, JRuby and TruffleRuby
uses: ruby/setup-ruby@v1.148.0
- name: Use Node.js 16.x
uses: actions/setup-node@v4
with:
node-version: 20
- name: build
run: |
ruby settings_writer.rb
npm i && npm run build:staging
- name: deploy
uses: FirebaseExtended/action-hosting-deploy@v0.7.1
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_QUICKSTART_1614336716847 }}'
channelId: live
target: free-location-sheet-staging-fd228
projectId: quickstart-1614336716847
- name: Update deployment status (success)
if: success()
uses: chrnorm/deployment-status@v2.0.1
with:
token: '${{ secrets.GITHUB_TOKEN }}'
environment-url: https://free-location-sheet-staging-fd228.web.app/
environment: staging
state: 'success'
deployment-id: ${{ steps.deployment.outputs.deployment_id }}