Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8a8e2a2

Browse files
authored
chore: add local npm hook to check that lock file is up to date (#1533)
1 parent 2bc43c3 commit 8a8e2a2

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
lint:
2424
uses: opalmedapps/actions/.github/workflows/prek.yaml@main
2525
with:
26-
skip: reuse-lint-file
26+
skip: reuse-lint-file,npm-ci
2727

2828
run-reuse-workflow:
2929
uses: opalmedapps/.github/.github/workflows/reuse.yaml@main

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ repos:
6464

6565
- repo: local
6666
hooks:
67+
- id: npm-ci
68+
name: npm lockfile up to date
69+
language: node
70+
entry: npm ci --dry-run
71+
files: ^package(-lock)?\.json$
6772
- id: check-translations
6873
name: Check translation files have the same translation keys
6974
entry: python ./.github/check_translations.py

0 commit comments

Comments
 (0)