Skip to content

Commit d63d0f3

Browse files
committed
refactor: abstract package bump workflow to a different file - skip deploy
1 parent d189a9e commit d63d0f3

File tree

3 files changed

+136
-154
lines changed

3 files changed

+136
-154
lines changed

.github/workflows/dev.yaml

Lines changed: 5 additions & 153 deletions
Original file line numberDiff line numberDiff line change
@@ -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
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
name: Package Bump
2+
3+
# This workflow bumps package versions across all downstream repositories.
4+
# Can be triggered:
5+
# 1. Manually via GitHub UI (workflow_dispatch)
6+
# 2. Automatically called from dev.yaml after successful latest publish
7+
8+
on:
9+
workflow_dispatch:
10+
workflow_call:
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
package-bump-layer:
17+
name: 'Package bump layer'
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Package bump layer
22+
uses: InjectiveLabs/github-fe/actions/package-bump@master
23+
with:
24+
gh_token: ${{ secrets.LAYER_GH_TOKEN }}
25+
repository_url: injectiveLabs/injective-ui
26+
repository_branch: master
27+
28+
package-bump-hub:
29+
name: 'Package bump hub'
30+
runs-on: ubuntu-latest
31+
needs: package-bump-layer
32+
33+
steps:
34+
- name: Package bump Hub
35+
uses: InjectiveLabs/github-fe/actions/package-bump@master
36+
with:
37+
gh_token: ${{ secrets.HUB_GH_TOKEN }}
38+
repository_url: injectiveLabs/injective-hub
39+
repository_branch: dev
40+
41+
package-bump-helix:
42+
name: 'Package bump Helix'
43+
runs-on: ubuntu-latest
44+
needs: package-bump-layer
45+
46+
steps:
47+
- name: Package bump Helix
48+
uses: InjectiveLabs/github-fe/actions/package-bump@master
49+
with:
50+
gh_token: ${{ secrets.HELIX_GH_TOKEN }}
51+
repository_url: injectiveLabs/injective-helix
52+
repository_branch: dev
53+
54+
package-bump-explorer:
55+
name: 'Package bump Explorer'
56+
runs-on: ubuntu-latest
57+
needs: package-bump-layer
58+
59+
steps:
60+
- name: Package bump Explorer
61+
uses: InjectiveLabs/github-fe/actions/package-bump@master
62+
with:
63+
gh_token: ${{ secrets.EXPLORER_GH_TOKEN }}
64+
repository_url: injectiveLabs/injective-explorer
65+
repository_branch: dev
66+
67+
package-bump-trading-ui:
68+
name: 'Package bump Trading UI'
69+
runs-on: ubuntu-latest
70+
needs: package-bump-layer
71+
72+
steps:
73+
- name: Package bump Trading UI
74+
uses: InjectiveLabs/github-fe/actions/package-bump@master
75+
with:
76+
gh_token: ${{ secrets.TRADING_UI_GH_TOKEN }}
77+
repository_url: injectiveLabs/injective-trading-ui
78+
repository_branch: dev
79+
80+
package-bump-mito:
81+
name: 'Package bump Mito'
82+
runs-on: ubuntu-latest
83+
needs: package-bump-layer
84+
85+
steps:
86+
- name: Package bump Mito
87+
uses: InjectiveLabs/github-fe/actions/package-bump@master
88+
with:
89+
gh_token: ${{ secrets.MITO_GH_TOKEN }}
90+
repository_url: mitoFinance/mito-ui
91+
repository_branch: dev
92+
93+
package-bump-ui-api:
94+
name: 'Package bump UI API'
95+
runs-on: ubuntu-latest
96+
needs: package-bump-layer
97+
98+
steps:
99+
- name: Package bump UI API
100+
uses: InjectiveLabs/github-fe/actions/package-bump@master
101+
with:
102+
gh_token: ${{ secrets.UI_API_GH_TOKEN }}
103+
repository_url: injectiveLabs/injective-ui-api
104+
repository_branch: staging
105+
106+
package-bump-admin-ui:
107+
name: 'Package bump Admin UI'
108+
runs-on: ubuntu-latest
109+
needs: package-bump-layer
110+
111+
steps:
112+
- name: Package bump Admin UI
113+
uses: InjectiveLabs/github-fe/actions/package-bump@master
114+
with:
115+
gh_token: ${{ secrets.ADMIN_UI_GH_TOKEN }}
116+
repository_url: InjectiveLabs/injective-admin-ui
117+
repository_branch: dev
118+
119+
package-bump-do-ui:
120+
name: 'Package bump DO UI'
121+
runs-on: ubuntu-latest
122+
needs: package-bump-layer
123+
124+
steps:
125+
- name: Package bump DO UI
126+
uses: InjectiveLabs/github-fe/actions/package-bump@master
127+
with:
128+
gh_token: ${{ secrets.DO_UI_GH_TOKEN }}
129+
repository_url: injectiveLabs/injective-do-ui
130+
repository_branch: master

protoV2/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ pnpm run build # Builds to proto-ts/
8080

8181
## Directory Structure
8282

83-
```
83+
```text
8484
protoV2/
8585
├── _scripts/
8686
│ ├── generate-dts.mjs # Shared: Generate .d.ts files

0 commit comments

Comments
 (0)