-
Notifications
You must be signed in to change notification settings - Fork 528
175 lines (160 loc) · 4.55 KB
/
node-staging.yml
File metadata and controls
175 lines (160 loc) · 4.55 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 – Staging (Alpha ➜ next)
on:
push:
branches: [develop]
permissions:
contents: read
id-token: write
packages: write
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
jobs:
build-and-publish:
name: Build & publish alpha ${{ matrix.package }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- package: core
node: 22
- package: common
node: 22
- package: fortmatic
node: 22
- package: gnosis
node: 22
- package: injected
node: 22
- package: frame
node: 22
- package: keepkey
node: 22
- package: keystone
node: 22
- package: ledger
node: 22
- package: mew
node: 22
- package: mew-wallet
node: 22
- package: portis
node: 22
- package: torus
node: 22
- package: trezor
node: 22
- package: trust
node: 22
- package: okx
node: 22
- package: frontier
node: 22
- package: walletconnect
node: 22
- package: walletlink
node: 22
- package: react
node: 22
- package: magic
node: 22
- package: coinbase
node: 22
- package: web3auth
node: 22
- package: dcent
node: 22
- package: vue
node: 22
- package: gas
node: 22
- package: hw-common
node: 22
- package: sequence
node: 22
- package: tallyho
node: 22
- package: enkrypt
node: 22
- package: uauth
node: 22
- package: transaction-preview
node: 22
- package: zeal
node: 22
- package: phantom
node: 22
- package: xdefi
node: 22
- package: infinity-wallet
node: 22
- package: taho
node: 22
- package: unstoppable-resolution
node: 22
- package: cede-store
node: 22
- package: arcana-auth
node: 22
- package: blocto
node: 22
- package: venly
node: 22
- package: bitget
node: 22
- package: bitkeep
node: 22
- package: metamask
node: 22
- package: solid
node: 22
- package: para
node: 22
- package: particle-network
node: 22
- package: finoaconnect
node: 22
- package: wagmi
node: 22
- package: passport
node: 22
- package: bloom
node: 22
- package: keplr
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/
# ────── only publish *alpha* versions ──────
- id: version
run: echo "v=$(node -p 'require(\"./package.json\").version')" >> "$GITHUB_OUTPUT"
- name: Skip non‑alpha builds on develop
if: ${{ !contains(steps.version.outputs.v, '-alpha') }}
run: echo "Not an alpha – 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 (next)
if: contains(steps.version.outputs.v, '-alpha')
run: npm publish --tag next --access public