This repository has been archived by the owner on Aug 3, 2024. It is now read-only.
ci: update serverless node runtime version #65
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: Build and deploy client to Firebase | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@master | |
- name: Install Dependencies | |
working-directory: client | |
run: npm ci --legacy-peer-deps | |
- name: Setup firebase api key | |
working-directory: client | |
run: npm run build:update ${{ secrets.FIREBASE_API_KEY }} | |
- name: Build | |
working-directory: client | |
env: | |
NODE_OPTIONS: --openssl-legacy-provider | |
run: npm run build:prod | |
- name: Deploy to Firebase | |
uses: w9jds/firebase-action@master | |
with: | |
args: deploy --only hosting | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} |