From dc7d1b96696eb0eedf92e22f5843fa8c8d97f825 Mon Sep 17 00:00:00 2001 From: Ethan Smith Date: Thu, 2 May 2024 21:27:19 -0400 Subject: [PATCH] ci: move check-node-version to separate step --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ddaaec4..854ce3f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,7 @@ jobs: node-version-file: '.nvmrc' - run: npm i -g npm@10.5.0 - run: npm ci + - run: npm run check-node-version - run: npm run standards test: needs: [ build ] @@ -31,6 +32,5 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - run: npm i -g npm@10.5.0 - - run: npm ci # Reinstall the dependencies to ensure they install with the current version of node + - run: npm ci # Reinstall the dependencies to ensure they install with the node's version of npm - run: npm test