-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (41 loc) · 1.07 KB
/
build_deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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
env:
NODE_OPTIONS: --openssl-legacy-provider
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
env:
NODE_OPTIONS: --openssl-legacy-provider
- name: firebase deploy
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
run: |
yarn global add firebase-tools@12
firebase deploy --token "$FIREBASE_TOKEN" --force