Bump prettier from 2.4.1 to 3.2.4 in /functions #177
Workflow file for this run
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: Integrate Cloud Functions | |
on: | |
push: | |
paths: | |
- "functions/**" | |
- ".github/workflows/cloud-functions.yml" | |
branches: | |
- master | |
pull_request: | |
paths: | |
- "functions/**" | |
- ".github/workflows/cloud-functions.yml" | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Setup Firebase Service Account | |
working-directory: functions | |
run: echo '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}' > 'src/service-account.json' | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version: 12.x | |
- name: Install Dependencies | |
working-directory: functions | |
run: npm ci | |
- name: Lint Firebase Cloud Functions | |
if: ${{ github.event_name == 'pull_request' }} | |
working-directory: functions | |
run: npm run lint | |
- name: Build Firebase Cloud Functions | |
if: ${{ github.event_name == 'pull_request' }} | |
working-directory: functions | |
run: npm run compile | |
- name: Deploy Firebase Cloud Functions | |
if: ${{ github.event_name == 'push' }} | |
uses: w9jds/[email protected] | |
with: | |
args: deploy --only functions --force | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} |