chore(deps): lock file maintenance #1633
This file contains hidden or 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
| name: Frontend Push | |
| on: | |
| push: | |
| paths: | |
| - 'frontend/**' | |
| - '.github/workflows/frontend*' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| frontend_build: | |
| uses: ./.github/workflows/frontend-build.yml | |
| frontend_deploy: | |
| runs-on: ubuntu-latest | |
| needs: frontend_build | |
| if: github.ref_type == 'branch' && (github.ref_name == 'dev' || github.ref_name == 'master') | |
| permissions: | |
| contents: read | |
| deployments: write | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| persist-credentials: false | |
| - name: Download frontend build artifact | |
| uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | |
| with: | |
| name: frontend-build | |
| path: frontend/build | |
| - name: Deploy to dev.tormap.org | |
| if: github.ref_name == 'dev' | |
| uses: FirebaseExtended/action-hosting-deploy@e2eda2e106cfa35cdbcf4ac9ddaf6c4756df2c8c # 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 live tormap.org | |
| if: github.ref_name == 'master' | |
| uses: FirebaseExtended/action-hosting-deploy@e2eda2e106cfa35cdbcf4ac9ddaf6c4756df2c8c # 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 |