From 934112de950ff5d71e3ac0329d56da46b96f2918 Mon Sep 17 00:00:00 2001 From: Wolvan Date: Fri, 4 Feb 2022 22:19:57 +0100 Subject: [PATCH] Only run tests on npm version 7+ NPM 7 introduced `set-script` which is needed to avoid running the prepublish script on installation. --- .github/workflows/run-tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 8eb5306..00a20a6 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - node-version: [10.x, 12.x, 14.x, 15.x, 16.x] + node-version: [15.x, 16.x] steps: - uses: actions/checkout@v2 @@ -24,5 +24,5 @@ jobs: - name: Install dependencies run: npm set-script prepublish "" - run: npm ci - - run: npm run build --if-present - - run: npm test \ No newline at end of file + - run: npm test + - run: npm run build --if-present \ No newline at end of file