Skip to content

Commit

Permalink
Revive the check for package-lock.json changes. (#2099)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuchenshi authored Apr 3, 2020
1 parent d9782af commit 3265f7f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/node-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,20 @@ jobs:
- name: Print debug logs
if: failure()
run: find . -type f -name "*debug.log" | xargs cat

check-package-lock:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install --package-lock-only
- run: "git diff --exit-code -- package-lock.json || (echo 'Error: package-lock.json is changed during npm install! Please make sure to use npm >= 6.9.0 and commit package-lock.json.' && false)"

0 comments on commit 3265f7f

Please sign in to comment.