mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Add a workflow to update package-lock.json daily
This commit is contained in:
parent
5bcb353e18
commit
4d57d35949
27
.github/workflows/update-package-lock.yaml
vendored
Normal file
27
.github/workflows/update-package-lock.yaml
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
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 * * *'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12
|
||||
registry-url: https://registry.npmjs.org/
|
||||
|
||||
- name: Configure git and update package-lock.json
|
||||
run: |
|
||||
git config user.email "ts_bot@rcavanaugh.com"
|
||||
git config user.name "TypeScript Bot"
|
||||
npm install --package-lock-only
|
||||
git add package-lock.json
|
||||
git commit -m "Update package-lock.json"
|
||||
git push
|
||||
Loading…
x
Reference in New Issue
Block a user