Skip to content

Commit 4d57d35

Browse files
committed
Add a workflow to update package-lock.json daily
1 parent 5bcb353 commit 4d57d35

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Update package-lock.json
2+
3+
on:
4+
schedule:
5+
# This is probably 6am UTC, which is 10pm PST or 11pm PDT
6+
# Alternatively, 6am local is also fine
7+
- cron: '0 6 * * *'
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v1
16+
with:
17+
node-version: 12
18+
registry-url: https://registry.npmjs.org/
19+
20+
- name: Configure git and update package-lock.json
21+
run: |
22+
git config user.email "[email protected]"
23+
git config user.name "TypeScript Bot"
24+
npm install --package-lock-only
25+
git add package-lock.json
26+
git commit -m "Update package-lock.json"
27+
git push

0 commit comments

Comments
 (0)