Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,48 @@ updates:
directory: '/'
schedule:
interval: 'weekly'
- package-ecosystem: 'npm'
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
directory: '/'
schedule:
interval: 'weekly'
open-pull-requests-limit: 10
versioning-strategy: increase
cooldown:
default-days: 7
groups:
babel:
patterns:
- '@babel/*'
jupyterlab:
patterns:
- '@jupyterlab/*'
- '@lumino/*'
typescript:
patterns:
- 'typescript'
- '@types/*'
- 'ts-*'
lint-and-format:
patterns:
- 'eslint*'
- '@typescript-eslint/*'
- 'prettier*'
- 'stylelint*'
dev-dependencies:
dependency-type: 'development'
minor-and-patch:
update-types:
- 'minor'
- 'patch'

- package-ecosystem: 'npm'
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
directory: '/ui-tests'
schedule:
interval: 'weekly'
open-pull-requests-limit: 5
cooldown:
default-days: 7
groups:
ui-tests-deps:
patterns:
- '*'
61 changes: 61 additions & 0 deletions .github/workflows/dependabot-lockfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Dependabot lockfile fix

on:
pull_request:
branches: [main]
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed

permissions:
contents: write

concurrency:
group: dependabot-lockfile-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
fix-lockfile:
if: >-
github.event.pull_request.user.login == 'dependabot[bot]' &&
startsWith(github.head_ref, 'dependabot/npm_and_yarn/')
runs-on: ubuntu-latest

env:
YARN_ENABLE_SCRIPTS: 'false'
YARN_ENABLE_IMMUTABLE_INSTALLS: 'false'

steps:
- name: Checkout PR branch
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
persist-credentials: false

- name: Setup Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: '20.x'

- name: Enable corepack
run: corepack enable

- name: Regenerate root yarn.lock
run: yarn install --mode=update-lockfile

- name: Regenerate ui-tests yarn.lock
working-directory: ui-tests
run: yarn install --mode=update-lockfile

- name: Commit and push if changed
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
if [[ -n "$(git status --porcelain)" ]]; then
git add yarn.lock ui-tests/yarn.lock
git commit -m "Regenerate yarn.lock [dependabot skip]"
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git push
else
echo "Lockfiles already in sync — nothing to do."
fi
Loading