Skip to content

use yarn workspaces #35

use yarn workspaces

use yarn workspaces #35

Workflow file for this run

name: Build and deploy
on: push
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
- run: yarn
- run: NODE_OPTIONS=--openssl-legacy-provider 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 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
- run: yarn
- run: NODE_OPTIONS=--openssl-legacy-provider yarn workspaces run build
- name: firebase deploy
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
run: |
yarn global add firebase-tools
firebase deploy --token "$FIREBASE_TOKEN" --force