File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,19 @@ jobs:
20
20
with :
21
21
node-version : 16
22
22
23
- - name : Configure git and update package-lock.json
23
+ - name : Update package-lock.json and push
24
24
run : |
25
- git config user.email "typescriptbot@microsoft.com"
26
- git config user.name "TypeScript Bot"
27
25
rm package-lock.json
28
- npm install --package-lock-only --ignore-scripts # This is a no-op if package-lock.json is present.
26
+ npm install
29
27
git add -f package-lock.json
30
- if git commit -m "Update package-lock.json"; then
28
+
29
+ if git diff --exit-code --name-only package-lock.json; then
30
+ echo "No change."
31
+ else
32
+ npm test
33
+ npx hereby lkg
34
+ git config user.email "typescriptbot@microsoft.com"
35
+ git config user.name "TypeScript Bot"
36
+ git commit -m "Update package-lock.json"
31
37
git push
32
38
fi
You can’t perform that action at this time.
0 commit comments