Skip to content

Commit 96ab30a

Browse files
authored
Merge pull request #249 from Gearbox-protocol/update-react
feat: update react
2 parents bb4c437 + 0ac657b commit 96ab30a

File tree

7 files changed

+4512
-3351
lines changed

7 files changed

+4512
-3351
lines changed

.github/workflows/pr.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,23 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v3
17-
- uses: actions/setup-node@v3
16+
- uses: actions/checkout@v4
17+
18+
- name: Use Latest Corepack
19+
run: |
20+
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
21+
npm install -g corepack@latest
22+
echo "After : corepack version => $(corepack --version)"
23+
corepack enable
24+
25+
- uses: actions/setup-node@v4
1826
with:
1927
cache: "yarn"
2028
node-version-file: ".nvmrc"
29+
2130
- name: Perform checks
2231
run: |
23-
yarn install --frozen-lockfile
32+
yarn install --immutable
2433
yarn typecheck:ci
2534
yarn lint:ci
2635
yarn prettier:ci

.github/workflows/release.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,24 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919

20-
- uses: actions/setup-node@v3
20+
- name: Use Latest Corepack
21+
run: |
22+
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
23+
npm install -g corepack@latest
24+
echo "After : corepack version => $(corepack --version)"
25+
corepack enable
26+
27+
- uses: actions/setup-node@v4
2128
with:
2229
cache: "yarn"
2330
node-version-file: ".nvmrc"
2431

2532
# No lint or prettier here since they were supposed to run on PR action
2633
- name: Build
2734
run: |
28-
yarn install --frozen-lockfile
35+
yarn install --immutable
2936
yarn build
3037
3138
- name: Semantic Release

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@
2222
*.log
2323

2424
.eslintcache
25-
.eslint.local.json
25+
.eslint.local.json
26+
.yarn/install-state.gz

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20
1+
22

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,17 @@
2121
"lint:ci": "eslint . --ext .tsx,.ts",
2222
"typecheck:ci": "tsc --noEmit"
2323
},
24-
"dependencies": {},
2524
"devDependencies": {
2625
"@commitlint/cli": "^19.6.1",
2726
"@commitlint/config-conventional": "^19.6.0",
2827
"@gearbox-protocol/eslint-config": "^2.0.0-next.2",
2928
"@gearbox-protocol/prettier-config": "^2.0.0",
30-
"@types/react": "18.2.0",
29+
"@types/react": "^19.2.7",
3130
"eslint": "^8.57.1",
3231
"husky": "^8.0.1",
3332
"lint-staged": "^13.0.3",
3433
"prettier": "^2.7.1",
35-
"react": "18.2.0",
34+
"react": "^19.2.1",
3635
"ts-node": "^10.9.2",
3736
"typescript": "5.0.4"
3837
},
@@ -43,5 +42,6 @@
4342
"prettier --write"
4443
],
4544
"*.{json,md}": "prettier --write"
46-
}
45+
},
46+
"packageManager": "yarn@4.9.2"
4747
}

0 commit comments

Comments
 (0)