Skip to content

Update dependency jsdom to v28 #2549

Update dependency jsdom to v28

Update dependency jsdom to v28 #2549

Workflow file for this run

name: autofix.ci # needed to securely identify the workflow
on:
pull_request:
push:
branches: ["main"]
permissions:
contents: read
jobs:
autofix:
runs-on: ubuntu-latest
# Skip autofix for bot commits to avoid race conditions
# where manypkg fix updates to unpublished versions
if: |
github.event_name == 'pull_request' ||
(github.event_name == 'push' && github.event.sender.type != 'Bot' && github.event.head_commit != null)
steps:
- uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: "pnpm"
- name: Install dependencies
run: pnpm install
# Note: We only skip manypkg for Changesets-driven version bumps.
# This avoids touching versions that haven't been published yet,
# while still letting autofix handle normal PRs and pushes.
- name: Decide if manypkg should be skipped
env:
HEAD_REF: ${{ github.event.pull_request.head.ref }}
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
run: |
SKIP_MANYPKG=false
if [ "${{ github.event_name }}" = "pull_request" ] && [ "$HEAD_REF" = "changeset-release/main" ]; then
SKIP_MANYPKG=true
elif [ "${{ github.event_name }}" = "push" ]; then
if echo "$COMMIT_MESSAGE" | grep -qi "Version Packages"; then
SKIP_MANYPKG=true
fi
fi
echo "SKIP_MANYPKG=$SKIP_MANYPKG" >> "$GITHUB_ENV"
- name: Fix linting issues
run: node bin/fix.js
- uses: autofix-ci/action@7a166d7532b277f34e16238930461bf77f9d7ed8