-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (33 loc) · 1.12 KB
/
update-npm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Scheduled Dependency Update
on:
# run this workflow manually from the Actions tab
workflow_dispatch:
# every monday at 02:00
# schedule:
# - cron: '0 2 * * 1'
jobs:
dependency-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'yarn'
- name: Upgrade dependencies
run: yarn upgrade --latest --caret
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
branch: chore-dependency-update
delete-branch: true
title: 'chore: dependency update 🧹'
commit-message: 'chore: dependency update'
body: |
This PR was automatically created.
- All dependencies are updated to the latest version.
- This PR will be created every monday at 2am and the branch will be force pushed.
- If all checks are green, feel free to merge it.