Skip to content

Commit d3b04a1

Browse files
Update CI (#2368)
* Setting up GitHub CI for packages * Pin github ci version * update node version for all packages (#2367) * update node version for all packages * update --------- Co-authored-by: Jake Loo <2171134+jakeloo@users.noreply.github.com>
1 parent bd63666 commit d3b04a1

File tree

4 files changed

+351
-34
lines changed

4 files changed

+351
-34
lines changed

.github/workflows/issue-to-notion.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/node-production.yml

Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
name: Node Packages – Production Release
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: read
9+
id-token: write # for provenance / npm‑pkg OIDC
10+
packages: write
11+
12+
env:
13+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
14+
15+
jobs:
16+
build-and-publish:
17+
name: Build & publish ${{ matrix.package }}
18+
runs-on: ubuntu-latest
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
include:
24+
- package: core # 1
25+
node: 22
26+
- package: common # 2
27+
node: 22
28+
- package: fortmatic # 3
29+
node: 22
30+
- package: gnosis # 4
31+
node: 22
32+
- package: injected # 5
33+
node: 22
34+
- package: frame # 6
35+
node: 22
36+
- package: keepkey # 7
37+
node: 22
38+
- package: keystone # 8
39+
node: 22
40+
- package: ledger # 9
41+
node: 22
42+
- package: mew # 10
43+
node: 22
44+
- package: mew-wallet # 11
45+
node: 22
46+
- package: portis # 12
47+
node: 22
48+
- package: torus # 13
49+
node: 22
50+
- package: trezor # 14
51+
node: 22
52+
- package: trust # 15
53+
node: 22
54+
- package: okx # 16
55+
node: 22
56+
- package: frontier # 17
57+
node: 22
58+
- package: walletconnect # 18
59+
node: 22
60+
- package: walletlink # 19
61+
node: 22
62+
- package: react # 20
63+
node: 22
64+
- package: magic # 21
65+
node: 22
66+
- package: coinbase # 22
67+
node: 22
68+
- package: web3auth # 23
69+
node: 22
70+
- package: dcent # 24
71+
node: 22
72+
- package: vue # 25
73+
node: 22
74+
- package: gas # 26
75+
node: 22
76+
- package: hw-common # 27
77+
node: 22
78+
- package: sequence # 28
79+
node: 22
80+
- package: tallyho # 29
81+
node: 22
82+
- package: enkrypt # 30
83+
node: 22
84+
- package: uauth # 31
85+
node: 22
86+
- package: transaction-preview # 32
87+
node: 22
88+
- package: zeal # 33
89+
node: 22
90+
- package: phantom # 34
91+
node: 22
92+
- package: xdefi # 35
93+
node: 22
94+
- package: infinity-wallet # 36
95+
node: 22
96+
- package: taho # 37
97+
node: 22
98+
- package: unstoppable-resolution # 38
99+
node: 22
100+
- package: cede-store # 39
101+
node: 22
102+
- package: arcana-auth # 40
103+
node: 22
104+
- package: blocto # 41
105+
node: 22
106+
- package: venly # 42
107+
node: 22
108+
- package: bitget # 43
109+
node: 22
110+
- package: bitkeep # 44
111+
node: 22
112+
- package: metamask # 45
113+
node: 22
114+
- package: solid # 46
115+
node: 22
116+
- package: para # 47
117+
node: 22
118+
- package: particle-network # 48
119+
node: 22
120+
- package: finoaconnect # 49
121+
node: 22
122+
- package: wagmi # 50
123+
node: 22
124+
- package: passport # 51
125+
node: 22
126+
- package: bloom # 52
127+
node: 22
128+
- package: keplr # 53
129+
node: 22
130+
131+
defaults:
132+
run:
133+
shell: bash
134+
working-directory: packages/${{ matrix.package }}
135+
136+
steps:
137+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
138+
139+
- name: Use Node ${{ matrix.node }}
140+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
141+
with:
142+
node-version: ${{ matrix.node }}
143+
registry-url: https://registry.npmjs.org/
144+
145+
# ────── skip alpha versions ──────
146+
- id: version
147+
run: echo "v=$(node -p 'require(\"./package.json\").version')" >> "$GITHUB_OUTPUT"
148+
149+
- name: Skip alpha builds on main
150+
if: contains(steps.version.outputs.v, '-alpha')
151+
run: echo "Alpha version detected – skipping publish."
152+
# ─────────────────────────────────
153+
154+
- name: Cache Yarn
155+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
156+
with:
157+
path: |
158+
~/.cache/yarn
159+
node_modules
160+
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
161+
162+
- name: Generate workspace lock‑file
163+
run: yarn generate-lock-entry >> yarn.lock
164+
165+
- name: Install dependencies
166+
run: yarn --immutable
167+
168+
- name: Type‑check & build
169+
run: |
170+
yarn type-check
171+
yarn build
172+
173+
- name: Publish to npm (latest)
174+
if: ${{ !contains(steps.version.outputs.v, '-alpha') }}
175+
run: npm publish --access public

.github/workflows/node-staging.yml

Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
name: Node Packages – Staging (Alpha ➜ next)
2+
3+
on:
4+
push:
5+
branches: [develop]
6+
7+
permissions:
8+
contents: read
9+
id-token: write
10+
packages: write
11+
12+
env:
13+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
14+
15+
jobs:
16+
build-and-publish:
17+
name: Build & publish alpha ${{ matrix.package }}
18+
runs-on: ubuntu-latest
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
include:
24+
- package: core
25+
node: 22
26+
- package: common
27+
node: 22
28+
- package: fortmatic
29+
node: 22
30+
- package: gnosis
31+
node: 22
32+
- package: injected
33+
node: 22
34+
- package: frame
35+
node: 22
36+
- package: keepkey
37+
node: 22
38+
- package: keystone
39+
node: 22
40+
- package: ledger
41+
node: 22
42+
- package: mew
43+
node: 22
44+
- package: mew-wallet
45+
node: 22
46+
- package: portis
47+
node: 22
48+
- package: torus
49+
node: 22
50+
- package: trezor
51+
node: 22
52+
- package: trust
53+
node: 22
54+
- package: okx
55+
node: 22
56+
- package: frontier
57+
node: 22
58+
- package: walletconnect
59+
node: 22
60+
- package: walletlink
61+
node: 22
62+
- package: react
63+
node: 22
64+
- package: magic
65+
node: 22
66+
- package: coinbase
67+
node: 22
68+
- package: web3auth
69+
node: 22
70+
- package: dcent
71+
node: 22
72+
- package: vue
73+
node: 22
74+
- package: gas
75+
node: 22
76+
- package: hw-common
77+
node: 22
78+
- package: sequence
79+
node: 22
80+
- package: tallyho
81+
node: 22
82+
- package: enkrypt
83+
node: 22
84+
- package: uauth
85+
node: 22
86+
- package: transaction-preview
87+
node: 22
88+
- package: zeal
89+
node: 22
90+
- package: phantom
91+
node: 22
92+
- package: xdefi
93+
node: 22
94+
- package: infinity-wallet
95+
node: 22
96+
- package: taho
97+
node: 22
98+
- package: unstoppable-resolution
99+
node: 22
100+
- package: cede-store
101+
node: 22
102+
- package: arcana-auth
103+
node: 22
104+
- package: blocto
105+
node: 22
106+
- package: venly
107+
node: 22
108+
- package: bitget
109+
node: 22
110+
- package: bitkeep
111+
node: 22
112+
- package: metamask
113+
node: 22
114+
- package: solid
115+
node: 22
116+
- package: para
117+
node: 22
118+
- package: particle-network
119+
node: 22
120+
- package: finoaconnect
121+
node: 22
122+
- package: wagmi
123+
node: 22
124+
- package: passport
125+
node: 22
126+
- package: bloom
127+
node: 22
128+
- package: keplr
129+
node: 22
130+
131+
defaults:
132+
run:
133+
shell: bash
134+
working-directory: packages/${{ matrix.package }}
135+
136+
steps:
137+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
138+
139+
- name: Use Node ${{ matrix.node }}
140+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
141+
with:
142+
node-version: ${{ matrix.node }}
143+
registry-url: https://registry.npmjs.org/
144+
145+
# ────── only publish *alpha* versions ──────
146+
- id: version
147+
run: echo "v=$(node -p 'require(\"./package.json\").version')" >> "$GITHUB_OUTPUT"
148+
149+
- name: Skip non‑alpha builds on develop
150+
if: ${{ !contains(steps.version.outputs.v, '-alpha') }}
151+
run: echo "Not an alpha – skipping publish."
152+
# ───────────────────────────────────────────
153+
154+
- name: Cache Yarn
155+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
156+
with:
157+
path: |
158+
~/.cache/yarn
159+
node_modules
160+
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
161+
162+
- name: Generate workspace lock‑file
163+
run: yarn generate-lock-entry >> yarn.lock
164+
165+
- name: Install dependencies
166+
run: yarn --immutable
167+
168+
- name: Type‑check & build
169+
run: |
170+
yarn type-check
171+
yarn build
172+
173+
- name: Publish to npm (next)
174+
if: contains(steps.version.outputs.v, '-alpha')
175+
run: npm publish --tag next --access public

.github/workflows/pr-status-checks.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ jobs:
1919
- name: Setup Nodejs and yarn
2020
uses: actions/setup-node@v2
2121
with:
22-
node-version: "20.18.0"
23-
cache: yarn
22+
node-version: 22
2423

2524
- name: Install dependencies
2625
run: yarn

0 commit comments

Comments
 (0)