Skip to content

Commit 71cc9e8

Browse files
Merge pull request #5014 from abnud11/chore/upgrade-dependencies
chore: upgrade yarn to v4 and other dependencies
2 parents c834746 + ca934b8 commit 71cc9e8

File tree

18 files changed

+38194
-26687
lines changed

18 files changed

+38194
-26687
lines changed

.github/workflows/build-docs-site.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,21 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15+
16+
- name: Set Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 20.x
20+
21+
- name: Corepack enable
22+
run: corepack enable
23+
24+
- name: Yarn setup
25+
run: corepack prepare --activate
1526

1627
- name: Get yarn cache directory path
1728
id: yarn-cache-dir-path
18-
run: echo "::set-output name=dir::$(yarn cache dir)"
29+
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
1930

2031
- uses: actions/cache@v4
2132
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
@@ -25,10 +36,7 @@ jobs:
2536
restore-keys: |
2637
${{ runner.os }}-yarn-
2738
28-
- name: Set Node.js
29-
uses: actions/setup-node@v4
30-
with:
31-
node-version: 20.x
39+
3240

3341
- name: Install dependencies
3442
run: yarn install

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343

4444
# Initializes the CodeQL tools for scanning.
4545
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v2
46+
uses: github/codeql-action/init@v3
4747
with:
4848
languages: ${{ matrix.language }}
4949
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -54,7 +54,7 @@ jobs:
5454
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5555
# If this step fails, then you should remove it and run the build manually (see below)
5656
- name: Autobuild
57-
uses: github/codeql-action/autobuild@v2
57+
uses: github/codeql-action/autobuild@v3
5858

5959
# ℹ️ Command-line programs to run using the OS shell.
6060
# 📚 https://git.io/JvXDl
@@ -68,4 +68,4 @@ jobs:
6868
# make release
6969

7070
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@v2
71+
uses: github/codeql-action/analyze@v3

.github/workflows/deploy.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,22 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4
12-
13-
- name: Get yarn cache directory path
14-
id: yarn-cache-dir-path
15-
run: echo "::set-output name=dir::$(yarn cache dir)"
16-
17-
- uses: actions/cache@v4
18-
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
19-
with:
20-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
21-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
22-
restore-keys: |
23-
${{ runner.os }}-yarn-
24-
12+
2513
- name: Set Node.js
2614
uses: actions/setup-node@v4
2715
with:
2816
node-version: 20.x
2917

18+
- name: Corepack enable
19+
run: corepack enable
20+
21+
- name: Yarn setup
22+
run: corepack prepare --activate
23+
24+
- name: Get yarn cache directory path
25+
id: yarn-cache-dir-path
26+
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
27+
3028
- name: Install dependencies
3129
run: yarn install
3230

.github/workflows/test.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,24 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v4
20-
20+
2121
- name: Setup kernel for react, increase watchers
2222
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
2323

24+
- name: Set Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 20.x
28+
29+
- name: Corepack enable
30+
run: corepack enable
31+
32+
- name: Yarn setup
33+
run: corepack prepare --activate
34+
2435
- name: Get yarn cache directory path
2536
id: yarn-cache-dir-path
26-
run: echo "::set-output name=dir::$(yarn cache dir)"
37+
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
2738

2839
- uses: actions/cache@v4
2940
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,11 @@ docs/year_dropdown.md
113113
package-lock.json
114114
scripts/.DS_Store
115115
.DS_Store
116+
117+
.yarn/*
118+
!.yarn/cache
119+
!.yarn/patches
120+
!.yarn/plugins
121+
!.yarn/releases
122+
!.yarn/sdks
123+
!.yarn/versions

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
yarn precommit

.yarnrc.yml

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

docs-site/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,10 @@
2121
npm-debug.log*
2222
yarn-debug.log*
2323
yarn-error.log*
24+
.yarn/*
25+
!.yarn/cache
26+
!.yarn/patches
27+
!.yarn/plugins
28+
!.yarn/releases
29+
!.yarn/sdks
30+
!.yarn/versions

docs-site/package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@
1818
"extends": "react-app"
1919
},
2020
"browserslist": {
21-
"production": [
22-
">0.2%",
23-
"not dead",
24-
"not op_mini all"
25-
],
21+
"production": [">0.2%", "not dead", "not op_mini all"],
2622
"development": [
2723
"last 1 chrome version",
2824
"last 1 firefox version",
@@ -37,5 +33,6 @@
3733
},
3834
"resolutions": {
3935
"strip-ansi": "6.0.1"
40-
}
36+
},
37+
"packageManager": "[email protected]"
4138
}

docs-site/src/components/Examples/style.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ input {
104104
&:focus {
105105
outline: none;
106106
border-color: #aeaeae;
107-
box-shadow: inset 0 2px 2px #e9e9e9, 0 0 10px 0 rgba(73, 107, 125, 0.3);
107+
box-shadow:
108+
inset 0 2px 2px #e9e9e9,
109+
0 0 10px 0 rgba(73, 107, 125, 0.3);
108110
}
109111
}
110112

0 commit comments

Comments
 (0)