Skip to content

Commit 3fce1de

Browse files
committed
feat: Support stable React 18 release
1 parent ba24a4b commit 3fce1de

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/workflows/validate.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ on:
1212
pull_request: {}
1313
jobs:
1414
main:
15-
continue-on-error: ${{ matrix.react != 'current' }}
15+
continue-on-error: ${{ matrix.react != 'latest' }}
1616
# ignore all-contributors PRs
1717
if: ${{ !contains(github.head_ref, 'all-contributors') }}
1818
strategy:
1919
fail-fast: false
2020
matrix:
2121
# TODO: relax `'16.9.1'` to `16` once GitHub has 16.9.1 cached. 16.9.0 is broken due to https://github.com/nodejs/node/issues/40030
2222
node: [12, 14, '16.9.1']
23-
react: [current, next, experimental]
23+
react: [latest, next, experimental]
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: 🛑 Cancel Previous Runs
@@ -47,7 +47,6 @@ jobs:
4747
# https://reactjs.org/blog/2019/10/22/react-release-channels.html#using-the-next-channel-for-integration-testing
4848
- name: ⚛️ Setup react
4949
run: npm install react@${{ matrix.react }} react-dom@${{ matrix.react }}
50-
if: ${{ matrix.react != 'current' }}
5150

5251
- name: ▶️ Run validate script
5352
run: npm run validate

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@
5454
"dotenv-cli": "^4.0.0",
5555
"kcd-scripts": "^11.1.0",
5656
"npm-run-all": "^4.1.5",
57-
"react": "18.0.0-rc.1",
58-
"react-dom": "18.0.0-rc.1",
57+
"react": "^18.0.0",
58+
"react-dom": "^18.0.0",
5959
"rimraf": "^3.0.2",
6060
"typescript": "^4.1.2"
6161
},
6262
"peerDependencies": {
63-
"react": "18.0.0-rc.1",
64-
"react-dom": "18.0.0-rc.1"
63+
"react": "^18.0.0",
64+
"react-dom": "^18.0.0"
6565
},
6666
"eslintConfig": {
6767
"extends": "./node_modules/kcd-scripts/eslint.js",

0 commit comments

Comments
 (0)