chore(deps): update devdependencies (non-major) (#2452) #1029
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
name: Deploy Frontend | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- "frontend/**" | |
- ".github/workflows/deploy-frontend.yml" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
deploy-frontend: | |
name: Deploy | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
deployments: write | |
steps: | |
- name: Check out the source code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Retrieve tags | |
run: git fetch --unshallow --tags | |
- name: Setup Node.js environment | |
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0 | |
with: | |
node-version: lts/* | |
cache: npm | |
cache-dependency-path: frontend/package-lock.json | |
- name: Install firebase-tools | |
run: npm i -g firebase-tools | |
- name: Install dependencies | |
run: npm ci --ignore-scripts | |
working-directory: frontend | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run postinstall scripts | |
run: npm rebuild && npm run prepare --if-present | |
working-directory: frontend | |
- name: Build frontend | |
run: npm run build | |
working-directory: frontend | |
- name: Start deployment | |
uses: chrnorm/deployment-action@55729fcebec3d284f60f5bcabbd8376437d696b1 # v2.0.7 | |
id: deployment | |
with: | |
token: "${{ github.token }}" | |
environment: production/hosting | |
- name: Deploy to Firebase hosting | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | |
run: firebase deploy --only hosting | |
- name: Update deployment status (success) | |
if: success() | |
uses: chrnorm/deployment-status@9a72af4586197112e0491ea843682b5dc280d806 # v2.0.3 | |
with: | |
token: "${{ github.token }}" | |
state: "success" | |
deployment-id: ${{ steps.deployment.outputs.deployment_id }} | |
- name: Update deployment status (failure) | |
if: failure() | |
uses: chrnorm/deployment-status@9a72af4586197112e0491ea843682b5dc280d806 # v2.0.3 | |
with: | |
token: "${{ github.token }}" | |
state: "failure" | |
deployment-id: ${{ steps.deployment.outputs.deployment_id }} |