Skip to content

Bump ts-jest from 29.0.5 to 29.1.2 in /functions (#86) #51

Bump ts-jest from 29.0.5 to 29.1.2 in /functions (#86)

Bump ts-jest from 29.0.5 to 29.1.2 in /functions (#86) #51

name: Firebase functions deployment
on:
push:
branches:
- main
jobs:
test:
uses: ./.github/workflows/test-workflow.yml
build:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version-file: './functions/.nvmrc'
cache: yarn
cache-dependency-path: ./functions/yarn.lock
- name: Install dependencies
run: |
cd functions
yarn install
- name: Deploy to Firebase test
uses: w9jds/firebase-action@master
with:
args: deploy --only functions -P test
env:
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY_TEST }}
- name: Deploy to Firebase prod
uses: w9jds/firebase-action@master
with:
args: deploy --only functions -P default
env:
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}