Skip to content

nodeのバージョンを20まで上げる #495

nodeのバージョンを20まで上げる

nodeのバージョンを20まで上げる #495

name: Firebase Cloud Functionsでのdeployを実行する
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20'
- run: npm install
- run: npm install
working-directory: ./functions
- run: npm --prefix functions run lint
- run: npm --prefix functions run build
- name: Setup Firebase CLI
run: npm install -g firebase-tools
- name: Deploy Firebase Cloud Functions
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
run: firebase deploy --only functions --token $FIREBASE_TOKEN