Skip to content

Commit 3a396ca

Browse files
committed
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 <[email protected]> Ticket: BTC-0
1 parent c21f82f commit 3a396ca

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,21 @@ jobs:
2828
with:
2929
node-version: 20
3030

31+
- name: Ensure npm 11.5.1 or later for trusted publishing
32+
run: |
33+
npm install -g npm@latest
34+
3135
- name: Install Rust
3236
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
3337
with:
3438
toolchain: nightly
3539

40+
- name: Cache Rust dependencies
41+
uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2.8.1
42+
with:
43+
workspaces: "packages/wasm-utxo"
44+
cache-on-failure: true
45+
3646
- name: Install wasm tools
3747
run: |
3848
rustup component add rustfmt

0 commit comments

Comments
 (0)