From 3a396cadc945d4bf4d9fce3ab4b5c5af940d4724 Mon Sep 17 00:00:00 2001 From: Luis Covarrubias Date: Thu, 6 Nov 2025 01:09:49 -0800 Subject: [PATCH] chore: improve CI publish pipeline Add npm 11.5+ requirement for trusted publishing and implement Rust dependency caching to speed up builds. Co-authored-by: llm-git Ticket: BTC-0 --- .github/workflows/publish.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1f9636d8..c1536f8e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,11 +28,21 @@ jobs: with: node-version: 20 + - name: Ensure npm 11.5.1 or later for trusted publishing + run: | + npm install -g npm@latest + - name: Install Rust uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1 with: toolchain: nightly + - name: Cache Rust dependencies + uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2.8.1 + with: + workspaces: "packages/wasm-utxo" + cache-on-failure: true + - name: Install wasm tools run: | rustup component add rustfmt