From 7adebfb951ad6e5767f2d52b8d883ae63f2d96fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com> Date: Fri, 9 Dec 2022 17:28:59 +0000 Subject: [PATCH] feat: new node installation --- .github/workflows/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f59a7113..cb4448fe 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 -- GitLab