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