diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aa7d5009a5..cb2b91e50f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,12 @@ name: CI pipeline -on: [push, pull_request] +on: + pull_request: + branches: + - main + push: + branches: + - main jobs: build: diff --git a/.github/workflows/renovate-validation.yml b/.github/workflows/renovate-validation.yml new file mode 100644 index 0000000000..d23bd5289d --- /dev/null +++ b/.github/workflows/renovate-validation.yml @@ -0,0 +1,25 @@ +name: 'Validate renovate.json' + +on: + pull_request: + branches: + - main + paths: + - 'renovate.json' + push: + branches: + - main + paths: + - 'renovate.json' + +jobs: + validate: + name: Validate + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Validate + uses: rinchsan/renovate-config-validator@v0.0.11 + with: + pattern: 'renovate.json' diff --git a/renovate.json b/renovate.json index a3f1d2c1a3..be4e051c40 100644 --- a/renovate.json +++ b/renovate.json @@ -1,6 +1,54 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ - "local>Oriflame/renovate-config" + "config:js-lib", + ":rebaseStalePrs", + ":automergePatch", + "docker:disable" + ], + "assignees": [ + "jvilimek" + ], + "labels": [ + "dependencies" + ], + "stabilityDays": 3, + "internalChecksFilter": "strict", + "bumpVersion": "patch", + "packageRules": [ + { + "paths": [ + "packages/app/package.json" + ], + "addLabels": [ + "packages" + ] + }, + { + "paths": [ + "packages/backend/package.json" + ], + "addLabels": [ + "packages" + ] + }, + { + "description": "In case of eslint package update change the label to [linting]", + "matchPackagePatterns": [ + "eslint" + ], + "labels": [ + "linting" + ] + }, + { + "description": "In case we have optional dependencies change add [optional] label", + "matchDepTypes": [ + "optionalDependencies" + ], + "addLabels": [ + "optional" + ] + } ] -} +} \ No newline at end of file