Skip to content

Commit dfbf84c

Browse files
lcovarclaude
andcommitted
ci: add wasm-solana build artifacts to publish workflow
The publish workflow was only uploading and downloading wasm-utxo build artifacts, causing wasm-solana (and wasm-bip32) to be published to npm without their dist/ folders. This resulted in broken npm packages that only contained package.json and README.md. This fix adds a separate artifact upload step for wasm-solana in the finalize job, and a corresponding download step in the publish job, ensuring the built files are included when multi-semantic-release publishes to npm. BTC-2990 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 0c22062 commit dfbf84c

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

.github/workflows/build-and-test.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ jobs:
208208
run: npm test
209209
working-directory: packages/webui
210210

211-
- name: Upload final build artifacts
211+
- name: Upload wasm-utxo build artifacts
212212
if: inputs.upload-artifacts
213213
uses: actions/upload-artifact@v4
214214
with:
@@ -218,6 +218,15 @@ jobs:
218218
packages/wasm-utxo/dist/
219219
retention-days: 1
220220

221+
- name: Upload wasm-solana build artifacts
222+
if: inputs.upload-artifacts
223+
uses: actions/upload-artifact@v4
224+
with:
225+
name: wasm-solana-build
226+
path: |
227+
packages/wasm-solana/dist/
228+
retention-days: 1
229+
221230
# This job provides a stable "test / Test" status check for branch protection.
222231
# It runs after all other jobs complete successfully.
223232
gate:

.github/workflows/publish.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish @bitgo/wasm-utxo
1+
name: Publish @bitgo/wasm packages
22
on:
33
push:
44
branches:
@@ -30,12 +30,18 @@ jobs:
3030
with:
3131
fetch-depth: 0
3232

33-
- name: Download build artifacts
33+
- name: Download wasm-utxo build artifacts
3434
uses: actions/download-artifact@v4
3535
with:
3636
name: wasm-utxo-build
3737
path: packages/wasm-utxo/
3838

39+
- name: Download wasm-solana build artifacts
40+
uses: actions/download-artifact@v4
41+
with:
42+
name: wasm-solana-build
43+
path: packages/wasm-solana/
44+
3945
- name: Setup Node
4046
uses: actions/setup-node@v4
4147
with:

0 commit comments

Comments
 (0)