From 117cafe17beab2447ec96ff8c93e0fc3b24530d8 Mon Sep 17 00:00:00 2001 From: Alex Li Date: Sat, 1 Mar 2025 14:09:40 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=94=A7=20Disable=20patch=20updates=20?= =?UTF-8?q?and=20only=20update=20on=20Wednesday?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- renovate.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/renovate.json b/renovate.json index 51916f96..b24256ff 100644 --- a/renovate.json +++ b/renovate.json @@ -7,7 +7,7 @@ ":semanticCommitScopeDisabled" ], "timezone": "Asia/Tokyo", - "schedule": ["every weekend"], + "schedule": ["* * * * 3"], "branchConcurrentLimit": 5, "branchPrefix": "upgrade-renovate-", "dependencyDashboard": false, @@ -17,5 +17,8 @@ }, "minor": { "stabilityDays": 14 + }, + "patch": { + "enabled": false } } From 31191ae6ee87259a21e5cab6e8d8de456e64fca8 Mon Sep 17 00:00:00 2001 From: Alex Li Date: Sat, 1 Mar 2025 14:18:21 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=94=A7=20Migrate=20configuration=20as?= =?UTF-8?q?=20the=20validator=20suggested?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 4 ++-- renovate.json | 15 ++++++++++----- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b6b978f0..eb885235 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,11 +24,11 @@ jobs: channel: stable cache: true - - name: Set environment + - name: Set environment for MacOS & Ubuntu if: startsWith(matrix.os, 'macos') || startsWith(matrix.os, 'ubuntu') run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH - - name: Set environment + - name: Set environment for Windows if: startsWith(matrix.os, 'windows') run: echo "%LOCALAPPDATA%\Pub\Cache\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append diff --git a/renovate.json b/renovate.json index b24256ff..467976f3 100644 --- a/renovate.json +++ b/renovate.json @@ -1,22 +1,27 @@ { "extends": [ - "config:base", + "config:recommended", "group:monorepos", ":semanticCommits", ":semanticCommitTypeAll(upgrade)", ":semanticCommitScopeDisabled" ], "timezone": "Asia/Tokyo", - "schedule": ["* * * * 3"], + "schedule": [ + "* * * * 3" + ], "branchConcurrentLimit": 5, "branchPrefix": "upgrade-renovate-", "dependencyDashboard": false, - "ignorePaths": [".github/", "examples/**"], + "ignorePaths": [ + ".github/", + "examples/**" + ], "major": { - "stabilityDays": 30 + "minimumReleaseAge": "30 days" }, "minor": { - "stabilityDays": 14 + "minimumReleaseAge": "14 days" }, "patch": { "enabled": false From 5315040e770b8d621e3b2a0f3f885b53d0db435e Mon Sep 17 00:00:00 2001 From: Alex Li Date: Sat, 1 Mar 2025 14:27:05 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=91=B7=20Add=20validate=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/renovate.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/renovate.yml diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml new file mode 100644 index 00000000..1a8d6117 --- /dev/null +++ b/.github/workflows/renovate.yml @@ -0,0 +1,28 @@ +name: Validate Renovate Config + +on: + push: + paths: + - 'renovate.json' + pull_request: + paths: + - 'renovate.json' + +jobs: + validate: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Read .node-version + id: node_version + run: echo "version=$(cat .node-version)" >> $GITHUB_ENV + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "${{ env.version }}" + + - name: Validate Renovate Config + run: npx --yes --package renovate -- renovate-config-validator