forked from ecronix/react-most-wanted
-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (73 loc) · 2.05 KB
/
rmw-shell.yml
File metadata and controls
73 lines (73 loc) · 2.05 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: rmw-shell
on:
push:
branches:
- master
paths:
- "packages/rmw-shell/**"
workflow_dispatch:
jobs:
rmw-shell:
runs-on: ubuntu-latest
environment: prod
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm i
working-directory: ./packages/rmw-shell
- name: Publish
run: npm publish
working-directory: ./packages/rmw-shell
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
rmw-shell-template:
runs-on: ubuntu-latest
environment: prod
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm i
working-directory: ./packages/rmw-shell/cra-template-rmw
- name: Publish
run: npm publish
working-directory: ./packages/rmw-shell/cra-template-rmw
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
rmw-shell-demo:
if: ${{ always() }}
needs: [rmw-shell-template,rmw-shell]
runs-on: ubuntu-latest
environment: prod
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: install-rmw-shell
run: npx create-react-app demo-app --template rmw --use-npm
- name: install firebase functins dependencies
run: npm i
working-directory: ./demo-app/firebase/functions
- name: run build
run: |
npm run build
env:
CI: false
working-directory: ./demo-app
- name: Install firebase tools
run: npm i -g firebase-tools
- name: Deploy
run: |
firebase use prod
firebase deploy --only hosting --token $FIREBASE_TOKEN
working-directory: ./demo-app
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}