Skip to content

Commit

Permalink
feat: bump react version to 18
Browse files Browse the repository at this point in the history
  • Loading branch information
zixiang2018 authored Dec 7, 2023
2 parents 05da7eb + f9a3f20 commit b18cc12
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 22 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci-pull-request-open.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI - Pull Request

on:
pull_request:
branches: [ master ]
types:
- synchronize
- opened
- ready_for_review
- reopened
- unlocked


jobs:
test:
name: Test & Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14.x
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Packages
run: npm ci
- name: Check Lint
run: npm run lint
- name: Check TypeScript
run: npm run lint:type
- name: Test
run: npm run test
32 changes: 12 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
"author": "",
"license": "Apache-2.0",
"dependencies": {
"react": "^17.0.2",
"react-dom": "^17.0.2"
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@commitlint/cli": "^17.4.4",
Expand Down

0 comments on commit b18cc12

Please sign in to comment.