From 8dc103c470a3c84647e3ea5356392abb58efe8fb Mon Sep 17 00:00:00 2001 From: Lapo Luchini Date: Sun, 28 Apr 2024 19:20:36 +0000 Subject: [PATCH] Only install when needed by `lint`. --- .github/workflows/node.js.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 5314032..559e491 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -20,7 +20,8 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - - run: npm install - run: npm test all + - run: npm install + if: matrix.node-version == 'latest' - run: npm run lint if: matrix.node-version == 'latest'