Skip to content

fix(deps): update non-major #302

fix(deps): update non-major

fix(deps): update non-major #302

name: frontend_build_deploy
on:
push:
paths:
- 'frontend/**'
- '.github/workflows/frontend*'
pull_request:
paths:
- 'frontend/**'
- '.github/workflows/frontend*'
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
jobs:
frontend_build_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: yarn build
run: |
cd frontend
yarn install --immutable
yarn build
- name: Deploy to preview channel
if: github.event_name == 'pull_request' && (github.ref == 'development' || github.ref == 'dev')
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_TORMAP_36F44 }}'
projectId: tormap-36f44
entryPoint: ./frontend
expires: 30d
env:
FIREBASE_CLI_PREVIEWS: hostingchannels
- name: Deploy to dev.tormap.org
if: github.event_name == 'push' && (github.ref == 'development' || github.ref == 'dev')
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_TORMAP_DEV }}'
projectId: tormap-dev
entryPoint: ./frontend
channelId: live
env:
FIREBASE_CLI_PREVIEWS: hostingchannels
- name: Deploy to tormap.org
if: github.event_name == 'push' && (github.ref == 'master' || github.ref == 'main')
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_TORMAP_36F44 }}'
projectId: tormap-36f44
entryPoint: ./frontend
channelId: live
env:
FIREBASE_CLI_PREVIEWS: hostingchannels