Update package-lock.json #767
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update package-lock.json | |
on: | |
schedule: | |
# This is probably 6am UTC, which is 10pm PST or 11pm PDT | |
# Alternatively, 6am local is also fine | |
- cron: '0 6 * * *' | |
workflow_dispatch: {} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: github.repository == 'microsoft/TypeScript' | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 14 | |
- name: Configure git and update package-lock.json | |
run: | | |
git config user.email "[email protected]" | |
git config user.name "TypeScript Bot" | |
npm install --package-lock-only --ignore-scripts | |
git add -f package-lock.json | |
if git commit -m "Update package-lock.json"; then | |
git push | |
fi |