Skip to content

Use Node 18 on CI

Use Node 18 on CI #52

Workflow file for this run

name: Build
on: push
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 18.x
- run: npm install -g [email protected]
- run: yarn
- run: yarn workspaces run build
deploy-main:
concurrency: deploy-main
if: github.ref == 'refs/heads/main'
needs:
- build
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- uses: actions/checkout@v2
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 18.x
- run: npm install -g [email protected]
- run: yarn
- run: yarn workspaces run build
- name: firebase deploy
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
run: |
yarn global add firebase-tools@12
firebase deploy --token "$FIREBASE_TOKEN" --force