We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b530fe commit bae8bbdCopy full SHA for bae8bbd
src/jobs/scan_dependencies.yml
@@ -28,6 +28,10 @@ parameters:
28
29
steps:
30
- checkout
31
+ - run:
32
+ name: Check lockfile
33
+ working_directory: <<parameters.pkg_json_dir>>
34
+ command: <<include(scripts/check-lockfile.sh)>>
35
- core/ensure_pkg_manager:
36
ref: <<parameters.pkg_manager>>
37
- run:
src/scripts/check-lockfile.sh
@@ -0,0 +1,7 @@
1
+#!/bin/bash
2
+
3
+if [ ! -f "package-lock.json" ] && [ ! -f "pnpm-lock.yaml" ]; then
4
+ echo "Lockfile not found"
5
6
+ exit 1
7
+fi
0 commit comments