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/.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 diff --git a/renovate.json b/renovate.json index 51916f96..467976f3 100644 --- a/renovate.json +++ b/renovate.json @@ -1,21 +1,29 @@ { "extends": [ - "config:base", + "config:recommended", "group:monorepos", ":semanticCommits", ":semanticCommitTypeAll(upgrade)", ":semanticCommitScopeDisabled" ], "timezone": "Asia/Tokyo", - "schedule": ["every weekend"], + "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 } }