We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aeffb39 commit 12fc254Copy full SHA for 12fc254
1 file changed
.gitlab-ci.yml
@@ -12,4 +12,18 @@ pages:
12
- public
13
14
only:
15
- - main
+ - 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
0 commit comments