@@ -2,28 +2,71 @@ name: Bump_Dependencies
2
2
3
3
on :
4
4
schedule :
5
- - cron : " 0 0 * * * "
5
+ - cron : " 5 8 * * Sun " # 8:05 every Sunday
6
6
7
7
jobs :
8
8
Bump_Dependencies :
9
9
runs-on : ubuntu-latest
10
10
steps :
11
11
- uses : actions/checkout@v2
12
- - uses : actions/setup-node@v2-beta
12
+ - uses : actions/setup-node@v2
13
13
with :
14
- node-version : " 14 "
14
+ node-version : " 12 "
15
15
- name : Setup PNPM
16
16
17
17
with :
18
18
version : latest
19
+
20
+ - name : setup npm-check-updates
21
+ run : pnpm install -g npm-check-updates
22
+
19
23
- run : |
24
+ ncu -u --dep prod
20
25
pnpm install
21
- pnpm run bump
26
+
27
+
28
+ - uses : tibdex/github-app-token@v1
29
+ id : generate-token
30
+ with :
31
+ app_id : ${{ secrets.APP_ID }}
32
+ private_key : ${{ secrets.APP_PRIVATE_KEY }}
33
+ - uses : peter-evans/create-pull-request@v3
34
+ with :
35
+ token : ${{ steps.generate-token.outputs.token }}
36
+ commit-message : " chore: Update Dependencies"
37
+ title : " fix: Update Dependencies"
38
+ labels : Dependencies
39
+ branch : " Bump_Dependencies"
40
+
41
+
42
+ Bump_devDependencies :
43
+ runs-on : ubuntu-latest
44
+ steps :
45
+ - uses : actions/checkout@v2
46
+ - uses : actions/setup-node@v2
47
+ with :
48
+ node-version : " 12"
49
+ - name : Setup PNPM
50
+
51
+ with :
52
+ version : latest
53
+
54
+ - name : setup npm-check-updates
55
+ run : pnpm install -g npm-check-updates
56
+
57
+ - run : |
58
+ ncu -u --dep dev
22
59
pnpm install
23
- - uses : peter-evans/create-pull-request@v2
60
+
61
+ - uses : tibdex/github-app-token@v1
62
+ id : generate-token
63
+ with :
64
+ app_id : ${{ secrets.APP_ID }}
65
+ private_key : ${{ secrets.APP_PRIVATE_KEY }}
66
+ - uses : peter-evans/create-pull-request@v3
24
67
with :
25
- token : ${{ secrets.GITHUB_TOKEN }}
26
- commit-message : Update dependencies
27
- title : " [AUTO] Update dependencies "
68
+ token : ${{ steps.generate-token.outputs.token }}
69
+ commit-message : " chore: Update devDependencies "
70
+ title : " chore: Update devDependencies "
28
71
labels : Dependencies
29
- branch : " Bump "
72
+ branch : " Bump_devDependencies "
0 commit comments