Skip to content

Commit d8aaa97

Browse files
ci: Check package-lock.json is up-to-date
1 parent 8a21e88 commit d8aaa97

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/scip-snapshot.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,18 @@ jobs:
3333
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
3434
restore-keys: |
3535
${{ runner.os }}-node-
36-
36+
- name: 'Check package-lock.json up-to-date'
37+
run: |
38+
CMD="cd ./packages/pyright-scip && npm install --package-lock-only --ignore-scripts"
39+
bash -c "$CMD"
40+
if ! git diff --quiet; then
41+
git diff
42+
echo ""
43+
echo "----------------------------------------------------------------"
44+
echo "Re-run $CMD and push"
45+
echo "----------------------------------------------------------------"
46+
exit 1
47+
fi
3748
- run: npm install
3849
- run: cd ./packages/pyright-scip/ && npm install && npm run build
3950
- run: python --version

0 commit comments

Comments
 (0)