From 2adf256176ff3d2d71d5fb2b98b6a72e33206835 Mon Sep 17 00:00:00 2001 From: Ethan Smith Date: Thu, 2 May 2024 20:41:49 -0400 Subject: [PATCH] ci: move check-node-version to separate step --- .github/workflows/ci.yml | 4 ++-- package.json | 3 ++- 2 files changed, 4 insertions(+), 3 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 diff --git a/package.json b/package.json index bf94859..7768b11 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "description": "JS Code Standards for all SilverMine projects - eslint enforcement", "main": "index.js", "scripts": { - "test": "check-node-version --npm 10.5.0", + "check-node-version": "check-node-version --npm 10.5.0", + "test": "eslint", "release": "standard-version", "commitlint": "commitlint --from ee3b407", "eslint": "eslint .",