Skip to content

Commit 5a4d5e1

Browse files
authored
Test and LKG before push in dep bump (#53151)
1 parent edc343d commit 5a4d5e1

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/update-package-lock.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,19 @@ jobs:
2020
with:
2121
node-version: 16
2222

23-
- name: Configure git and update package-lock.json
23+
- name: Update package-lock.json and push
2424
run: |
25-
git config user.email "typescriptbot@microsoft.com"
26-
git config user.name "TypeScript Bot"
2725
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
2927
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"
3137
git push
3238
fi

0 commit comments

Comments
 (0)