Skip to content

Commit a600b17

Browse files
authored
Merge pull request #235 from Drawbotics/feat/react-19-migration
Feat/react 19 migration
2 parents cf52e2a + d339af1 commit a600b17

67 files changed

Lines changed: 1145 additions & 1458 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -51,40 +51,6 @@ jobs:
5151
env:
5252
NODE_AUTH_TOKEN: ${{secrets.GH_TOKEN}}
5353

54-
test-react-18:
55-
runs-on: ubuntu-latest
56-
if: "!contains(github.event.head_commit.message, 'skip ci')"
57-
continue-on-error: true
58-
steps:
59-
- name: Checkout
60-
uses: actions/checkout@v6
61-
- uses: actions/setup-node@v6
62-
with:
63-
node-version: '22.x'
64-
registry-url: https://npm.pkg.github.com/
65-
scope: '@drawbotics'
66-
cache: 'npm'
67-
- name: Install dependencies and build libs
68-
run: |
69-
npm run bootstrap
70-
npm run build-libs
71-
env:
72-
NODE_AUTH_TOKEN: ${{secrets.GH_TOKEN}}
73-
- name: Swap to React 18
74-
run: |
75-
# Install React 18 in a temp dir to avoid disrupting lerna's symlinks
76-
TMPDIR=$(mktemp -d)
77-
cd "$TMPDIR" && npm init -y > /dev/null 2>&1
78-
npm install react@18 react-dom@18 react-test-renderer@18 2>&1
79-
# Replace only the react packages in root node_modules (where jest resolves them)
80-
for pkg in react react-dom react-test-renderer scheduler; do
81-
rm -rf "$GITHUB_WORKSPACE/node_modules/$pkg"
82-
[ -d "$TMPDIR/node_modules/$pkg" ] && cp -rL "$TMPDIR/node_modules/$pkg" "$GITHUB_WORKSPACE/node_modules/$pkg"
83-
done
84-
rm -rf "$TMPDIR"
85-
- name: Run react-drylus tests
86-
run: npm run test:react
87-
8854
release:
8955
needs: test
9056
if: contains(github.ref, 'master')

0 commit comments

Comments
 (0)