File tree Expand file tree Collapse file tree 3 files changed +54
-12
lines changed Expand file tree Collapse file tree 3 files changed +54
-12
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ build-all :
7
+ type : boolean
8
+ description : " Build all packages"
9
+ default : true
10
+ publish-packages :
11
+ type : boolean
12
+ description : " Publish all packages"
13
+ default : false
14
+ workflow_call :
15
+ inputs :
16
+ build-all :
17
+ type : boolean
18
+ description : " Build all packages"
19
+ default : true
20
+ publish-packages :
21
+ type : boolean
22
+ description : " Publish all packages"
23
+ default : false
24
+
25
+ jobs :
26
+ Build :
27
+ runs-on : ubuntu-latest
28
+ steps :
29
+ - name : Checkout
30
+ uses : actions/checkout@v4
31
+
32
+ - name : Install Dependencies
33
+ uses : ./.github/actions/install-dependencies
34
+
35
+ - name : Build App
36
+ run : npm run build -w apps/app
37
+
38
+ - name : Build Packages
39
+ run : npm run build -w packages/ -w apps/default-app
40
+ if : ${{ inputs.build-packages || inputs.publish-packages }}
41
+
42
+ - name : Publish Packages
43
+ if : ${{ inputs.publish-packages }}
44
+ run : npx -y pkg-pr-new publish './packages/*' --no-template
Original file line number Diff line number Diff line change 20
20
uses : ./.github/workflows/tests-visual.yml
21
21
secrets : inherit
22
22
23
+ build :
24
+ name : Build
25
+ uses : ./.github/workflows/build.yml
26
+ with :
27
+ build-all : true
28
+
23
29
notify-fail :
24
30
name : Notify Fail
25
- needs : [tests, visual-tests]
31
+ needs : [tests, build, visual-tests]
26
32
if : failure()
27
33
runs-on : ubuntu-latest
28
34
Original file line number Diff line number Diff line change @@ -113,14 +113,6 @@ jobs:
113
113
114
114
build :
115
115
name : Build
116
- runs-on : ubuntu-latest
117
-
118
- steps :
119
- - name : Checkout
120
- uses : actions/checkout@v4
121
-
122
- - name : Install Dependencies
123
- uses : ./.github/actions/install-dependencies
124
-
125
- - name : Run Build
126
- run : npm run build:app
116
+ uses : ./.github/workflows/build.yml
117
+ with :
118
+ build-all : false
You can’t perform that action at this time.
0 commit comments