Skip to content

Commit 8e54e06

Browse files
committed
chore: update dependency bumper [skip ci]
1 parent 3ca0d5d commit 8e54e06

File tree

1 file changed

+52
-9
lines changed

1 file changed

+52
-9
lines changed

.github/workflows/bump_deps.yml

Lines changed: 52 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,71 @@ name: Bump_Dependencies
22

33
on:
44
schedule:
5-
- cron: "0 0 * * *"
5+
- cron: "5 8 * * Sun" # 8:05 every Sunday
66

77
jobs:
88
Bump_Dependencies:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
12-
- uses: actions/setup-node@v2-beta
12+
- uses: actions/setup-node@v2
1313
with:
14-
node-version: "14"
14+
node-version: "12"
1515
- name: Setup PNPM
1616
uses: pnpm/[email protected]
1717
with:
1818
version: latest
19+
20+
- name: setup npm-check-updates
21+
run: pnpm install -g npm-check-updates
22+
1923
- run: |
24+
ncu -u --dep prod
2025
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+
uses: pnpm/[email protected]
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
2259
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
2467
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"
2871
labels: Dependencies
29-
branch: "Bump"
72+
branch: "Bump_devDependencies"

0 commit comments

Comments
 (0)