From b6dad2f93c8e4f8ad2db098c7ca62e2f29f8d777 Mon Sep 17 00:00:00 2001 From: Maurizio Casimirri Date: Mon, 29 Jan 2024 15:13:39 +0100 Subject: [PATCH] chore(ci): make dependabot update package.json (#5392) * chore: make dependabot update package.json * add missing deps, split shared in dev and prod, reformat --- .github/dependabot.yml | 90 +++++++++++++++----------- .github/workflows/update-electron.yaml | 57 ---------------- 2 files changed, 54 insertions(+), 93 deletions(-) delete mode 100644 .github/workflows/update-electron.yaml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b5f059fb064..93d54f671b0 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -3,58 +3,76 @@ version: 2 updates: - package-ecosystem: "npm" + versioning-strategy: increase directory: "/" schedule: interval: "daily" allow: - # Standalone deps - - dependency-name: "mongodb" - - dependency-name: "bson" - # All the mongosh deps - - dependency-name: "@mongosh/node-runtime-worker-thread" - - dependency-name: "@mongosh/browser-repl" - - dependency-name: "@mongosh/logging" - - dependency-name: "@mongodb-js/oidc-plugin" # we bump mongosh when this updates - - dependency-name: "@mongodb-js/devtools-connect" # we bump mongosh when this updates + - dependency-name: mongodb + - dependency-name: mongodb-* + - dependency-name: bson + - dependency-name: bson-* + - dependency-name: "@mongosh/*" + - dependency-name: "@mongodb-js/*" + - dependency-name: os-dns-native + - dependency-name: system-ca + # All the electron and its related deps - dependency-name: "electron" - - dependency-name: "@electron/remote" - - dependency-name: "@electron/rebuild" + - dependency-name: "@electron/*" - dependency-name: "browserslist" - dependency-name: "node-abi" - # All the devtools-shared packages https://github.com/mongodb-js/devtools-shared - - dependency-name: "@mongodb-js/dl-center" - - dependency-name: "@mongodb-js/get-os-info" - - dependency-name: "@mongodb-js/mongodb-constants" - - dependency-name: "@mongodb-js/mongodb-downloader" - - dependency-name: "mongodb-runner" - - dependency-name: "@mongodb-js/monorepo-tools" - - dependency-name: "@mongodb-js/oidc-mock-provider" - - dependency-name: "@mongodb-js/sbom-tools" + - dependency-name: "kerberos" + - dependency-name: "saslprep" + - dependency-name: "@leafygreen-ui/*" groups: + driver: + patterns: + - "mongodb" + - "bson" + - "@mongodb-js/oidc-plugin" + - "@mongodb-js/oidc-mock-provider" + - "@mongodb-js/devtools-connect" + - "mongodb-client-encryption" + - "kerberos" + - "os-dns-native" + - "system-ca" + - "saslprep" + electron: patterns: - - "electron" - - "@electron/remote" - - "@electron/rebuild" - - "browserslist" - - "node-abi" + - "electron" + - "@electron/remote" + - "@electron/rebuild" + - "browserslist" + - "node-abi" update-types: ["minor", "patch"] - devtools-shared: + + devtools-shared-prod: + patterns: + - "@mongodb-js/get-os-info" + - "@mongodb-js/mongodb-constants" + - "mongodb-cloud-info" + - "mongodb-query-parser" + + devtools-shared-dev: patterns: - - "@mongodb-js/dl-center" - - "@mongodb-js/get-os-info" - - "@mongodb-js/mongodb-constants" - - "@mongodb-js/mongodb-downloader" - - "mongodb-runner" - - "@mongodb-js/monorepo-tools" - - "@mongodb-js/oidc-mock-provider" - - "@mongodb-js/sbom-tools" + - "@mongodb-js/dl-center" + - "@mongodb-js/mongodb-downloader" + - "@mongodb-js/monorepo-tools" + - "@mongodb-js/sbom-tools" + - "@mongodb-js/signing-utils" + - "mongodb-runner" + mongosh: patterns: - - "@mongosh/*" + - "@mongosh/*" + + leafygreen: + patterns: + - "@leafygreen-ui/*" commit-message: prefix: "chore" include: "scope" labels: - - "dependencies" \ No newline at end of file + - "dependencies" diff --git a/.github/workflows/update-electron.yaml b/.github/workflows/update-electron.yaml deleted file mode 100644 index 978146cf0f7..00000000000 --- a/.github/workflows/update-electron.yaml +++ /dev/null @@ -1,57 +0,0 @@ -name: Update electron - -# Runs nightly and manually -on: - workflow_dispatch: - schedule: - - cron: "0 0 * * *" - -jobs: - update_generated_files: - name: Update Electron - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - # don't checkout a detatched HEAD - ref: ${{ github.head_ref }} - - # this is important so git log can pick up on - # the whole history to generate the list of AUTHORS - fetch-depth: '0' - - - name: Setup git - run: | - git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" - git config --local user.name "github-actions[bot]" - - - uses: actions/setup-node@v2 - with: - node-version: ^16.20.2 - cache: 'npm' - - - name: Install npm@8.19.4 - run: | - npm install -g npm@8.19.4 - - - name: Install Dependencies - run: | - npm -v - npm ci - - - name: Bump packages - run: | - node scripts/update-electron.js - git add . - git commit --no-allow-empty -m "chore: update electron" || true - - - name: Create Pull Request - id: cpr - uses: peter-evans/create-pull-request@v4 - with: - token: ${{ secrets.SVC_DEVTOOLSBOT_TOKEN }} - commit-message: 'chore: update electron' - branch: ci/update-electron - title: 'chore: update electron' - body: | - - Update electron