Skip to content

Commit 0834d92

Browse files
ci: Check package-lock.json is up-to-date (#89)
1 parent 8a21e88 commit 0834d92

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
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

packages/pyright-scip/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)