diff --git a/.github/workflows/if-nodejs-pr-testing.yml b/.github/workflows/if-nodejs-pr-testing.yml index 1dcccd32..45c63b2b 100644 --- a/.github/workflows/if-nodejs-pr-testing.yml +++ b/.github/workflows/if-nodejs-pr-testing.yml @@ -33,6 +33,10 @@ jobs: id: packagejson run: test -e ./package.json && echo "::set-output name=exists::true" || echo "::set-output name=exists::false" shell: bash + - if: steps.packagejson.outputs.exists == 'true' + name: Check package-lock.json version is '2' + run: | + grep '"lockfileVersion": 2' package-lock.json - if: steps.packagejson.outputs.exists == 'true' name: Setup Node.js uses: actions/setup-node@v2