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