ci: cache npm packages for the web bindings

This commit is contained in:
Amaan Qureshi 2026-02-09 21:59:56 -05:00 committed by Amaan Qureshi
parent e7389ccc2a
commit a91efd56f8

View file

@ -109,6 +109,14 @@ jobs:
echo "EMSDK=$PWD" >> "$GITHUB_ENV"
echo "EMSDK_NODE=$PWD/node/$(ls node)/bin/node" >> "$GITHUB_ENV"
- name: Set up Node.js
if: contains(matrix.features, 'wasm') && (matrix.run-wasm-test || !inputs.run-test)
uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
cache-dependency-path: lib/binding_web/package-lock.json
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with: