-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.19 KB
/
checkout-install-dep-build-dev-prod.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
44
45
46
47
48
name: Checkout, install dependencies, and build dev and prod
on:
workflow_dispatch:
push:
branches:
- main
- 'release/**'
pull_request:
branches:
- main
- 'release/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.13]
steps:
- uses: actions/checkout@v2
- uses: "finnp/create-file-action@master"
env:
FILE_NAME: "constellation/lib_asset.json"
FILE_DATA: "{}"
- uses: "finnp/create-file-action@master"
env:
FILE_NAME: "constellation/bootstrap-shell.js"
FILE_DATA: "// placeholder for bootstrap-shell.js"
- uses: "finnp/create-file-action@master"
env:
FILE_NAME: "constellation/constellation-core.placeholder.js"
FILE_DATA: "// placeholder for constellaiton-core.js"
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm run build:dev:ci
- name: Run build:dev
run: npm run build:dev
- name: Run build:prod
run: npm run build:prod