From cf8e012c7cd2c40d3ef426dd32405e656d20c167 Mon Sep 17 00:00:00 2001 From: Aaron DeRuvo Date: Tue, 6 Feb 2024 13:40:16 +0200 Subject: [PATCH] set up base config for renovate on developer tooling repos (#120) * set up base config for renovate on developer tooling repos * for major versions ignore untill they are at least 2 weeks old --------- Co-authored-by: Aaron --- .github/workflows/ci.yml | 15 +++++++++++++++ dt-renovate-base.json | 20 ++++++++++++++++++++ renovate.json | 3 ++- 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 dt-renovate-base.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e433294c1..222cbf8bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -325,3 +325,18 @@ jobs: cd $RUNNER_TEMP npm install $RUNNER_WORKSPACE/developer-tooling/packages/sdk/base/*.tgz npm install $RUNNER_WORKSPACE/developer-tooling/packages/sdk/utils/*.tgz + + validate-renovate-config: + name: Validate Renovate Config + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20.x + - name: Validate Renovate Config + run: | + npm install --global renovate + renovate-config-validator diff --git a/dt-renovate-base.json b/dt-renovate-base.json new file mode 100644 index 000000000..edabc8499 --- /dev/null +++ b/dt-renovate-base.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "local>celo-org/.github:renovate-config" + ], + "prCreation": "approval", + "prConcurrentLimit": 2, + "minimumReleaseAge": "5 days", + "major": { + "minimumReleaseAge": "14 days" + }, + "packageRules": [ + { + "matchManagers": ["github-actions"], + "automerge": true, + "autoApprove": "true", + "prCreation": "status-success" + } + ] +} \ No newline at end of file diff --git a/renovate.json b/renovate.json index 48c8c9968..1895e2687 100644 --- a/renovate.json +++ b/renovate.json @@ -1,6 +1,7 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ - "local>celo-org/.github:renovate-config" + "local>celo-org/.github:renovate-config", + "local>celo-org/developer-tooling:dt-renovate-base" ] }