Skip to content

Commit 1978073

Browse files
committed
Add GitHub infra
1 parent 2d295a2 commit 1978073

File tree

4 files changed

+41
-106
lines changed

4 files changed

+41
-106
lines changed

.github/renovate.json

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

.github/workflows/package-validation.yml

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

.github/workflows/update-dependencies.yml

Lines changed: 19 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,33 @@ 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
12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
issues: write
16+
repository-projects: write
17+
statuses: write
18+
checks: write
19+
actions: read
20+
security-events: read
1221
if: github.repository_owner == 'atlassian-labs'
1322

1423
steps:
15-
- name: Checkout code
24+
- name: Checkout
1625
uses: actions/checkout@v4
17-
with:
18-
token: ${{ secrets.GITHUB_TOKEN }}
1926

20-
- name: Setup Node.js
21-
uses: actions/setup-node@v4
22-
with:
23-
node-version: 20
24-
cache: 'yarn'
25-
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
27+
- name: Self-hosted Renovate
28+
uses: renovatebot/[email protected]
3929
with:
30+
configurationFile: .github/renovate.json
4031
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
32+
env:
33+
RENOVATE_PLATFORM_COMMIT: 'true'
34+
LOG_LEVEL: 'debug'

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lexicographic/keys",
3-
"version": "0.9.0",
3+
"version": "1.0.0",
44
"main": "dist/index.js",
55
"types": "dist/index.d.ts",
66
"license": "Apache-2.0",
@@ -17,7 +17,7 @@
1717
"lsi",
1818
"sorted keys"
1919
],
20-
"public": true,
20+
"private": false,
2121
"contributors": [
2222
{
2323
"name": "Daniel Hreben",
@@ -62,4 +62,4 @@
6262
"typescript": "^5.9.2",
6363
"typescript-eslint": "^8.39.0"
6464
}
65-
}
65+
}

0 commit comments

Comments
 (0)