Skip to content

Commit fc5f1b4

Browse files
amaanqWillLillis
authored andcommitted
ci: cache npm packages for the web bindings
1 parent 054f892 commit fc5f1b4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,14 @@ jobs:
109109
echo "EMSDK=$PWD" >> "$GITHUB_ENV"
110110
echo "EMSDK_NODE=$PWD/node/$(ls node)/bin/node" >> "$GITHUB_ENV"
111111
112+
- name: Set up Node.js
113+
if: contains(matrix.features, 'wasm') && (matrix.run-wasm-test || !inputs.run-test)
114+
uses: actions/setup-node@v4
115+
with:
116+
node-version: 24
117+
cache: npm
118+
cache-dependency-path: lib/binding_web/package-lock.json
119+
112120
- name: Set up Rust
113121
uses: actions-rust-lang/setup-rust-toolchain@v1
114122
with:

0 commit comments

Comments
 (0)