diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index f59a71134a2f1bd1dc8235a146b53d958748e6b8..cb4448fe5817e1935fbe2a81e0b9bc19347ff25c 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -50,6 +50,7 @@ jobs:
           "1.65.0",
           "latest"
         ]
+        node-version: ["16"]
     runs-on: ubuntu-latest
     container: rust:${{ matrix.rust-version }}
     steps:
@@ -68,7 +69,9 @@ jobs:
         name: Install wasm-pack
       - run: wasm-pack build --release --target=web --out-dir=frontends/web/lib -- --features wasm
         name: Build WASM Web binary
-      - run: apt-get update && apt-get install -y -q nodejs npm
+      - uses: actions/setup-node@v1
+        with:
+          node-version: ${{ matrix.rust-version }}
         name: Install Node.js
       - run: cd frontends/web && npm install && npm run build && npm run lint
         name: Build and lint Web code