Skip to content

Commit 12fc254

Browse files
authored
Update .gitlab-ci.yml (#36)
1 parent aeffb39 commit 12fc254

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

.gitlab-ci.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,18 @@ pages:
1212
- public
1313

1414
only:
15-
- main
15+
- main
16+
17+
check_lockfile:
18+
image: node:lts
19+
stage: test
20+
script:
21+
- npm ci
22+
- npm install --package-lock-only
23+
- |
24+
if ! git diff --quiet package-lock.json; then
25+
echo "package-lock.json is out of date. Run 'npm install' and commit the changes."
26+
exit 1
27+
fi
28+
only:
29+
- main

0 commit comments

Comments
 (0)