File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments