From 0725bd28e7d8265ec232091bfcafb99005f1ab38 Mon Sep 17 00:00:00 2001 From: Luis Covarrubias Date: Tue, 3 Feb 2026 17:20:59 -0800 Subject: [PATCH] fix(wasm-solana): include pkg/ in artifact upload to preserve dist/ path The upload-artifact action uses the least common ancestor of all paths as the artifact root. With only dist/ specified, the artifact structure loses the dist/ prefix, causing files to be extracted to the wrong location during publish. Adding pkg/ (matching wasm-utxo's pattern) ensures the common ancestor is packages/wasm-solana/, preserving the dist/ directory structure. --- .github/workflows/build-and-test.yaml | 1 + packages/wasm-solana/js/parser.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index aed9c25..2ccf1be 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -227,6 +227,7 @@ jobs: with: name: wasm-solana-build path: | + packages/wasm-solana/pkg/ packages/wasm-solana/dist/ retention-days: 1 diff --git a/packages/wasm-solana/js/parser.ts b/packages/wasm-solana/js/parser.ts index d385684..01d13d6 100644 --- a/packages/wasm-solana/js/parser.ts +++ b/packages/wasm-solana/js/parser.ts @@ -18,7 +18,7 @@ import type { VersionedTransaction } from "./versioned.js"; export type TransactionInput = Uint8Array | Transaction | VersionedTransaction; // ============================================================================= -// Instruction Types - matching BitGoJS InstructionParams +// Instruction Types - matching BitGoJS InstructionParams. // ============================================================================= /** SOL transfer parameters */