Skip to content

Commit 1e1afc3

Browse files
committed
chore(sync packages): ensure react and react-dom remain in sync
1 parent f0eed2a commit 1e1afc3

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ updates:
1818
- "eslint"
1919
- "eslint-*"
2020
- "prettier"
21+
react:
22+
patterns:
23+
- "react"
24+
- "react-dom"
2125
ignore:
2226
- dependency-name: "@rjsf/core"
2327
update-types: ["version-update:semver-major"]

.github/workflows/pr-checks.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ jobs:
2323
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2424
- uses: ./.github/actions/set-up-node
2525
- run: npm ci
26+
- name: Ensure installed React and React-DOM versions match
27+
run: |
28+
REACT_VERSION=$(npm ls react --depth=0 --json | jq -r '.dependencies.react.version')
29+
REACT_DOM_VERSION=$(npm ls react-dom --depth=0 --json | jq -r '.dependencies["react-dom"].version')
30+
echo "Installed React: $REACT_VERSION"
31+
echo "Installed React-DOM: $REACT_DOM_VERSION"
32+
if [ "$REACT_VERSION" != "$REACT_DOM_VERSION" ]; then
33+
echo "ERROR: Installed React and React-DOM versions must match!"
34+
exit 1
35+
fi
2636
- run: npm run build
2737
- run: npm run build # Needed to avoid incremental build quirks
2838
- run: npm run api:verify

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@
7575
"prosemirror-schema-basic": "^1.2.4",
7676
"prosemirror-tables": "^1.6.4",
7777
"puppeteer": "^19.11.1",
78-
"react": "19.1.0",
79-
"react-dom": "19.1.0",
78+
"react": "^19.1.0",
79+
"react-dom": "^19.1.0",
8080
"react-shadow-dom-retarget-events": "^1.1.0",
8181
"rehype-parse": "^9.0.1",
8282
"rehype-raw": "^7.0.0",

0 commit comments

Comments
 (0)