@@ -77,13 +77,13 @@ jobs:
77
77
uses : actions/download-artifact@v3
78
78
with :
79
79
name : ubuntu-latest-node18-compiled-assets-${{ inputs.head-sha }}
80
- path : ${{ github.workspace }}/${{ inputs.head-sha }}/components
80
+ path : ${{ github.workspace }}/${{ inputs.head-sha }}
81
81
82
82
- name : Download build artifacts for base ${{ inputs.base-sha }}
83
83
uses : actions/download-artifact@v3
84
84
with :
85
85
name : ubuntu-latest-node18-compiled-assets-${{ inputs.base-sha }}
86
- path : ${{ github.workspace }}/${{ inputs.base-sha }}/components
86
+ path : ${{ github.workspace }}/${{ inputs.base-sha }}
87
87
88
88
- name : Compare compiled output file size
89
89
id : compare
92
92
with :
93
93
path : ${{ github.workspace }}/${{ inputs.head-sha }}/
94
94
diff-path : ${{ github.workspace }}/${{ inputs.base-sha }}/
95
- file-glob-pattern : components/*/dist/**
95
+ file-glob-pattern : |
96
+ components/*/dist/**
97
+ tokens/dist/**
98
+ ui-icons/dist/**
96
99
token : ${{ secrets.GITHUB_TOKEN }}
97
100
98
101
fetch-build-artifacts :
@@ -161,16 +164,13 @@ jobs:
161
164
uses : actions/cache@v3
162
165
with :
163
166
path : |
164
- components/*/dist/**
167
+ components/*/dist/**
168
+ tokens/dist/**
169
+ ui-icons/dist/**
165
170
key : ${{ steps.derive-key.outputs.key }}
166
171
167
- - name : Build components
168
- if : ${{ matrix.branch == inputs.base-sha && steps.cache-build.outputs.cache-hit != 'true' }}
169
- shell : bash
170
- run : yarn build
171
-
172
- - name : Build components
173
- if : ${{ matrix.branch == inputs.head-sha && steps.cache-build.outputs.cache-hit != 'true' }}
172
+ - name : Build
173
+ if : ${{ steps.cache-build.outputs.cache-hit != 'true' }}
174
174
shell : bash
175
175
run : yarn build
176
176
@@ -179,7 +179,9 @@ jobs:
179
179
uses : actions/upload-artifact@v3
180
180
with :
181
181
path : |
182
- ${{ github.workspace }}/components/*/dist/**
182
+ ${{ github.workspace }}/components/*/dist/**
183
+ ${{ github.workspace }}/tokens/dist/**
184
+ ${{ github.workspace }}/ui-icons/dist/**
183
185
name : ${{ steps.derive-key.outputs.key }}
184
186
# this is important, it lets us catch if the build failed silently
185
187
# by alterting us that no compiled assets were generated
0 commit comments