File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 74
74
# Instead, fail if there's a security issue.
75
75
advanced-security : false
76
76
77
+ npm-install :
78
+ name : Lockfile up-to-date
79
+ runs-on : ubuntu-24.04
80
+ steps :
81
+ - name : Checkout repository
82
+ uses : actions/checkout@v4
83
+ with :
84
+ persist-credentials : false
85
+
86
+ - name : Check if package-lock.json is up-to-date
87
+ run : |
88
+ npm install
89
+
90
+ # Assert that the git diff is empty.
91
+ git diff --exit-code || (echo "Git diff is not empty. Please run 'npm install' and commit the changes." && exit 1)
92
+
77
93
package :
78
94
name : Package
79
95
runs-on : ubuntu-24.04
@@ -184,6 +200,7 @@ jobs:
184
200
- format
185
201
- zizmor
186
202
- package
203
+ - npm-install
187
204
- rustfmt
188
205
- clippy
189
206
# !cancelled() executes the job regardless of whether the previous jobs passed, failed or get skipped.
You can’t perform that action at this time.
0 commit comments