├── .github ├── CODEOWNERS └── workflows │ └── test.yml ├── .gitignore ├── LICENSE ├── README.md ├── default.json ├── package-lock.json ├── package.json └── renovate.json /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | # This file controls default reviewers. 2 | * @shisama @b4h0-c4t @sajikix 3 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | 2 | name: test 3 | 4 | on: 5 | push: 6 | branches: [ master ] 7 | pull_request: 8 | 9 | jobs: 10 | test: 11 | 12 | name: Test Renovate config 13 | runs-on: ubuntu-latest 14 | 15 | steps: 16 | - uses: actions/checkout@v4 17 | - name: Use Node.js v14.x 18 | uses: actions/setup-node@v4 19 | with: 20 | node-version: 14.x 21 | - name: npm ci, and npm test 22 | run: | 23 | npm ci 24 | npm test 25 | env: 26 | CI: true -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | 2 | MIT License 3 | 4 | Copyright (c) 2018 Cybozu, Inc. 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # @cybozu/renovate-config 2 | 3 | [![npm version](https://badge.fury.io/js/%40cybozu%2Frenovate-config.svg)](https://badge.fury.io/js/%40cybozu%2Frenovate-config) 4 | 5 | A sharable Renovate config for Cybozu. 6 | 7 | ## Usage 8 | 9 | * `renovate.json` 10 | 11 | ```json 12 | { 13 | "extends": ["github>cybozu/renovate-config"] 14 | } 15 | ``` 16 | 17 | ## Settings 18 | 19 | See the settings in [renovate.json](https://github.com/cybozu/renovate-config/blob/master/renovate.json) and [Configuration Options](https://renovatebot.com/docs/configuration-options/) in Renovate Docs 20 | 21 | ### GitHub Actions 22 | 23 | If you have a branch protection rule for GitHub Actions, you have to run the GitHub Action on pushing branches to allow Renovate create pull requests. 24 | Otherwise, Renovate won't create pull requests due to the pending status. 25 | 26 | ```yaml 27 | on: 28 | push: 29 | branches: 30 | - master 31 | - 'renovate/**' # branches Renovate creates 32 | pull_request: 33 | ``` 34 | 35 | ## License 36 | 37 | MIT License 38 | -------------------------------------------------------------------------------- /default.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | ":ignoreModulesAndTests", 4 | ":label(renovate)", 5 | ":prConcurrentLimit10", 6 | ":timezone(Asia/Tokyo)", 7 | "group:monorepos", 8 | ":widenPeerDependencies", 9 | ":prImmediately", 10 | ":dependencyDashboard" 11 | ], 12 | "npm": { 13 | "extends": [ 14 | ":automergePatch", 15 | ":noUnscheduledUpdates", 16 | ":separatePatchReleases", 17 | "npm:unpublishSafe", 18 | "helpers:disableTypesNodeMajor" 19 | ], 20 | "schedule": [ 21 | "after 9pm", 22 | "before 9am" 23 | ], 24 | "rangeStrategy": "bump", 25 | "postUpdateOptions": [ 26 | "npmDedupe" 27 | ], 28 | "packageRules": [ 29 | { 30 | "matchPackagePatterns": [ 31 | "*" 32 | ], 33 | "semanticCommitType": "chore" 34 | }, 35 | { 36 | "matchDepTypes": [ 37 | "dependencies", 38 | "peerDependencies" 39 | ], 40 | "semanticCommitType": "fix" 41 | }, 42 | { 43 | "groupName": "ESLint and Prettier", 44 | "matchPackageNames": [ 45 | "eslint", 46 | "prettier" 47 | ], 48 | "matchPackagePatterns": [ 49 | "^eslint-config-", 50 | "^eslint-plugin-" 51 | ] 52 | }, 53 | { 54 | "description": "automerge minor updates of widely used libraries in devDeps", 55 | "matchUpdateTypes": [ 56 | "minor" 57 | ], 58 | "matchDepTypes": [ 59 | "devDependencies" 60 | ], 61 | "automerge": true, 62 | "matchPackageNames": [ 63 | "glob", 64 | "mocha", 65 | "npm-run-all", 66 | "power-assert", 67 | "rimraf", 68 | "sinon" 69 | ] 70 | }, 71 | { 72 | "description": "disable package.json > engines update", 73 | "matchDepTypes": [ 74 | "engines" 75 | ], 76 | "enabled": false 77 | } 78 | ] 79 | }, 80 | "circleci": { 81 | "enabled": true, 82 | "automerge": true, 83 | "automergeType": "branch", 84 | "schedule": [ 85 | "before 9am on Friday" 86 | ], 87 | "semanticCommitScope": "docker", 88 | "semanticCommitType": "ci", 89 | "packageRules": [ 90 | { 91 | "groupName": "Node Docker digests in CircleCI", 92 | "matchPackageNames": [ 93 | "circleci/node", 94 | "node" 95 | ] 96 | } 97 | ] 98 | }, 99 | "packageRules": [ 100 | { 101 | "matchDepTypes": [ 102 | "action" 103 | ], 104 | "excludePackagePrefixes": [ 105 | "actions/", 106 | "cybozu/" 107 | ], 108 | "pinDigests": true 109 | } 110 | ] 111 | } 112 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@cybozu/renovate-config", 3 | "repository": "cybozu/renovate-config", 4 | "homepage": "https://github.com/cybozu/renovate-config", 5 | "bugs": "https://github.com/cybozu/renovate-config/issues", 6 | "version": "1.0.0", 7 | "description": "A shareable Renovate config for Cybozu", 8 | "files": [], 9 | "keywords": [ 10 | "renovate" 11 | ], 12 | "scripts": { 13 | "test": "renovate-config-validator" 14 | }, 15 | "devDependencies": { 16 | "renovate": "^34.160.0" 17 | }, 18 | "author": "cybozu", 19 | "license": "MIT" 20 | } 21 | -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["github>cybozu/renovate-config"] 3 | } 4 | --------------------------------------------------------------------------------