@@ -134,8 +134,6 @@ jobs:
134134 pnpm build
135135
136136 - name : Version packages
137- env :
138- GH_TOKEN : ${{ secrets.GH_TOKEN }}
139137 run : |
140138 pnpm exec lerna version ${{ steps.determine-publish-type.outputs.version_args }}
141139
@@ -193,155 +191,9 @@ jobs:
193191 # ============================================
194192 # Package Bump Jobs (only after latest publish on dev branch)
195193 # ============================================
196- package-bump-layer :
197- name : ' Package bump layer'
198- runs-on : ubuntu-latest
194+ trigger-package-bumps :
195+ name : ' Trigger Package Bumps'
199196 needs : publish
200- if : |
201- always() &&
202- (needs.publish.result == 'success' && needs.publish.outputs.publish_type == 'latest') ||
203- github.event_name == 'workflow_dispatch'
204-
205- steps :
206- - name : Package bump layer
207- uses : InjectiveLabs/github-fe/actions/package-bump@master
208- with :
209- gh_token : ${{ secrets.LAYER_GH_TOKEN }}
210- repository_url : injectiveLabs/injective-ui
211- repository_branch : master
212-
213- package-bump-hub :
214- name : ' Package bump hub'
215- runs-on : ubuntu-latest
216- needs : [publish, package-bump-layer]
217- if : |
218- always() &&
219- (needs.publish.result == 'success' && needs.publish.outputs.publish_type == 'latest') ||
220- github.event_name == 'workflow_dispatch'
221-
222- steps :
223- - name : Package bump Hub
224- uses : InjectiveLabs/github-fe/actions/package-bump@master
225- with :
226- gh_token : ${{ secrets.HUB_GH_TOKEN }}
227- repository_url : injectiveLabs/injective-hub
228- repository_branch : dev
229-
230- package-bump-helix :
231- name : ' Package bump Helix'
232- runs-on : ubuntu-latest
233- needs : [publish, package-bump-layer]
234- if : |
235- always() &&
236- (needs.publish.result == 'success' && needs.publish.outputs.publish_type == 'latest') ||
237- github.event_name == 'workflow_dispatch'
238-
239- steps :
240- - name : Package bump Helix
241- uses : InjectiveLabs/github-fe/actions/package-bump@master
242- with :
243- gh_token : ${{ secrets.HELIX_GH_TOKEN }}
244- repository_url : injectiveLabs/injective-helix
245- repository_branch : dev
246-
247- package-bump-explorer :
248- name : ' Package bump Explorer'
249- runs-on : ubuntu-latest
250- needs : [publish, package-bump-layer]
251- if : |
252- always() &&
253- (needs.publish.result == 'success' && needs.publish.outputs.publish_type == 'latest') ||
254- github.event_name == 'workflow_dispatch'
255-
256- steps :
257- - name : Package bump Explorer
258- uses : InjectiveLabs/github-fe/actions/package-bump@master
259- with :
260- gh_token : ${{ secrets.EXPLORER_GH_TOKEN }}
261- repository_url : injectiveLabs/injective-explorer
262- repository_branch : dev
263-
264- package-bump-trading-ui :
265- name : ' Package bump Trading UI'
266- runs-on : ubuntu-latest
267- needs : [publish, package-bump-layer]
268- if : |
269- always() &&
270- (needs.publish.result == 'success' && needs.publish.outputs.publish_type == 'latest') ||
271- github.event_name == 'workflow_dispatch'
272-
273- steps :
274- - name : Package bump Trading UI
275- uses : InjectiveLabs/github-fe/actions/package-bump@master
276- with :
277- gh_token : ${{ secrets.TRADING_UI_GH_TOKEN }}
278- repository_url : injectiveLabs/injective-trading-ui
279- repository_branch : dev
280-
281- package-bump-mito :
282- name : ' Package bump Mito'
283- runs-on : ubuntu-latest
284- needs : [publish, package-bump-layer]
285- if : |
286- always() &&
287- (needs.publish.result == 'success' && needs.publish.outputs.publish_type == 'latest') ||
288- github.event_name == 'workflow_dispatch'
289-
290- steps :
291- - name : Package bump Mito
292- uses : InjectiveLabs/github-fe/actions/package-bump@master
293- with :
294- gh_token : ${{ secrets.MITO_GH_TOKEN }}
295- repository_url : mitoFinance/mito-ui
296- repository_branch : dev
297-
298- package-bump-ui-api :
299- name : ' Package bump UI API'
300- runs-on : ubuntu-latest
301- needs : [publish, package-bump-layer]
302- if : |
303- always() &&
304- (needs.publish.result == 'success' && needs.publish.outputs.publish_type == 'latest') ||
305- github.event_name == 'workflow_dispatch'
306-
307- steps :
308- - name : Package bump UI API
309- uses : InjectiveLabs/github-fe/actions/package-bump@master
310- with :
311- gh_token : ${{ secrets.UI_API_GH_TOKEN }}
312- repository_url : injectiveLabs/injective-ui-api
313- repository_branch : staging
314-
315- package-bump-admin-ui :
316- name : ' Package bump Admin UI'
317- runs-on : ubuntu-latest
318- needs : [publish, package-bump-layer]
319- if : |
320- always() &&
321- (needs.publish.result == 'success' && needs.publish.outputs.publish_type == 'latest') ||
322- github.event_name == 'workflow_dispatch'
323-
324- steps :
325- - name : Package bump Admin UI
326- uses : InjectiveLabs/github-fe/actions/package-bump@master
327- with :
328- gh_token : ${{ secrets.ADMIN_UI_GH_TOKEN }}
329- repository_url : InjectiveLabs/injective-admin-ui
330- repository_branch : dev
331-
332- package-bump-do-ui :
333- name : ' Package bump DO UI'
334- runs-on : ubuntu-latest
335- needs : [publish, package-bump-layer]
336- if : |
337- always() &&
338- (needs.publish.result == 'success' && needs.publish.outputs.publish_type == 'latest') ||
339- github.event_name == 'workflow_dispatch'
340-
341- steps :
342- - name : Package bump DO UI
343- uses : InjectiveLabs/github-fe/actions/package-bump@master
344- with :
345- gh_token : ${{ secrets.DO_UI_GH_TOKEN }}
346- repository_url : injectiveLabs/injective-do-ui
347- repository_branch : master
197+ if : needs.publish.result == 'success' && needs.publish.outputs.publish_type == 'latest'
198+ uses : ./.github/workflows/package-bump.yaml
199+ secrets : inherit
0 commit comments