Skip to content

Commit 64f4e13

Browse files
committed
Renovate
1 parent c36a7d6 commit 64f4e13

3 files changed

Lines changed: 26 additions & 104 deletions

File tree

.github/renovate.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": ["config:base"],
4+
"packageRules": [
5+
{
6+
"matchUpdateTypes": ["minor", "patch"],
7+
"groupName": "all non-major dependencies",
8+
"groupSlug": "all-minor-patch"
9+
}
10+
],
11+
"prConcurrentLimit": 3,
12+
"prHourlyLimit": 2,
13+
"commitMessagePrefix": "chore:",
14+
"commitMessageAction": "update",
15+
"commitMessageTopic": "{{depName}}",
16+
"commitMessageExtra": "to {{newVersion}}",
17+
"semanticCommits": "enabled"
18+
}

.github/workflows/package-validation.yml

Lines changed: 0 additions & 70 deletions
This file was deleted.

.github/workflows/update-dependencies.yml

Lines changed: 8 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,21 @@ name: Update Dependencies
22

33
on:
44
schedule:
5-
# Run weekly on Mondays at 9 AM UTC
6-
- cron: '0 9 * * 1'
5+
# Run twice a week - Mondays and Fridays at 9 AM Sydney time (11 PM UTC Sunday/Thursday)
6+
- cron: '0 23 * * 0,4' # Sunday 11 PM UTC = Monday 9 AM Sydney, Thursday 11 PM UTC = Friday 9 AM Sydney
77
workflow_dispatch: # Allow manual trigger
88

99
jobs:
10-
update-dependencies:
10+
renovate:
1111
runs-on: ubuntu-latest
1212
if: github.repository_owner == 'atlassian-labs'
1313

1414
steps:
15-
- name: Checkout code
15+
- name: Checkout
1616
uses: actions/checkout@v4
17-
with:
18-
token: ${{ secrets.GITHUB_TOKEN }}
19-
20-
- name: Setup Node.js
21-
uses: actions/setup-node@v4
22-
with:
23-
node-version: 20
24-
cache: 'yarn'
2517

26-
- name: Update dependencies
27-
run: |
28-
yarn upgrade --latest
29-
yarn install
30-
31-
- name: Run tests
32-
run: |
33-
yarn lint
34-
yarn test
35-
yarn build
36-
37-
- name: Create Pull Request
38-
uses: peter-evans/create-pull-request@v6
18+
- name: Self-hosted Renovate
19+
uses: renovatebot/github-action@v40.1.12
3920
with:
40-
token: ${{ secrets.GITHUB_TOKEN }}
41-
commit-message: 'chore: update dependencies'
42-
title: 'chore: update dependencies'
43-
body: |
44-
Automated dependency update.
45-
46-
Please review the changes and ensure all tests pass before merging.
47-
branch: chore/update-dependencies
48-
delete-branch: true
21+
configurationFile: .github/renovate.json
22+
token: ${{ secrets.RENOVATE_TOKEN }}

0 commit comments

Comments
 (0)