Skip to content

Commit eb30acc

Browse files
authored
🔧 Disable patch updates and only update on Wednesday (#669)
1 parent 6c931d5 commit eb30acc

File tree

3 files changed

+43
-7
lines changed

3 files changed

+43
-7
lines changed

‎.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424
channel: stable
2525
cache: true
2626

27-
- name: Set environment
27+
- name: Set environment for MacOS & Ubuntu
2828
if: startsWith(matrix.os, 'macos') || startsWith(matrix.os, 'ubuntu')
2929
run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
3030

31-
- name: Set environment
31+
- name: Set environment for Windows
3232
if: startsWith(matrix.os, 'windows')
3333
run: echo "%LOCALAPPDATA%\Pub\Cache\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
3434

‎.github/workflows/renovate.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Validate Renovate Config
2+
3+
on:
4+
push:
5+
paths:
6+
- 'renovate.json'
7+
pull_request:
8+
paths:
9+
- 'renovate.json'
10+
11+
jobs:
12+
validate:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Read .node-version
19+
id: node_version
20+
run: echo "version=$(cat .node-version)" >> $GITHUB_ENV
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: "${{ env.version }}"
26+
27+
- name: Validate Renovate Config
28+
run: npx --yes --package renovate -- renovate-config-validator

‎renovate.json

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
11
{
22
"extends": [
3-
"config:base",
3+
"config:recommended",
44
"group:monorepos",
55
":semanticCommits",
66
":semanticCommitTypeAll(upgrade)",
77
":semanticCommitScopeDisabled"
88
],
99
"timezone": "Asia/Tokyo",
10-
"schedule": ["every weekend"],
10+
"schedule": [
11+
"* * * * 3"
12+
],
1113
"branchConcurrentLimit": 5,
1214
"branchPrefix": "upgrade-renovate-",
1315
"dependencyDashboard": false,
14-
"ignorePaths": [".github/", "examples/**"],
16+
"ignorePaths": [
17+
".github/",
18+
"examples/**"
19+
],
1520
"major": {
16-
"stabilityDays": 30
21+
"minimumReleaseAge": "30 days"
1722
},
1823
"minor": {
19-
"stabilityDays": 14
24+
"minimumReleaseAge": "14 days"
25+
},
26+
"patch": {
27+
"enabled": false
2028
}
2129
}

0 commit comments

Comments
 (0)