Skip to content

Commit 53574e0

Browse files
committed
chore: upgrade node
1 parent 6092a5c commit 53574e0

File tree

6 files changed

+185
-666
lines changed

6 files changed

+185
-666
lines changed

.github/workflows/ci.yml

+29-29
Original file line numberDiff line numberDiff line change
@@ -14,37 +14,37 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu-latest]
17-
node-version: [18]
17+
node-version: [20]
1818

1919
steps:
20-
- uses: actions/checkout@v4
21-
22-
- name: Use Node.js ${{ matrix.node-version }}
23-
uses: actions/setup-node@v3
24-
with:
25-
node-version: ${{ matrix.node-version }}
26-
27-
- name: Get yarn cache directory path
28-
id: yarn-cache-dir-path
29-
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
30-
31-
- uses: actions/cache@v3
32-
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
33-
with:
34-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
35-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
36-
restore-keys: |
37-
${{ runner.os }}-yarn-
38-
39-
- name: yarn install, build
40-
run: |
41-
yarn install
42-
yarn build
43-
44-
- name: test, report coverage
45-
run: |
46-
yarn verify-translation
47-
yarn test
20+
- uses: actions/checkout@v4
21+
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
27+
- name: Get yarn cache directory path
28+
id: yarn-cache-dir-path
29+
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
30+
31+
- uses: actions/cache@v3
32+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
33+
with:
34+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
35+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
36+
restore-keys: |
37+
${{ runner.os }}-yarn-
38+
39+
- name: yarn install, build
40+
run: |
41+
yarn install
42+
yarn build
43+
44+
- name: test, report coverage
45+
run: |
46+
yarn verify-translation
47+
yarn test
4848
4949
# - uses: codecov/codecov-action@v1
5050
# if: success() && matrix.os == 'ubuntu-latest'

.github/workflows/release-builtin.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [ubuntu-latest]
14-
node-version: [18]
14+
node-version: [20]
1515

1616
steps:
1717
- uses: actions/checkout@v4

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [ubuntu-latest]
14-
node-version: [18]
14+
node-version: [20]
1515

1616
steps:
1717
- uses: actions/checkout@v4

.node-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
20

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"@types/jest": "^29.5.3",
6666
"@types/loadable__component": "^5.13.0",
6767
"@types/lodash-es": "^4.17.8",
68-
"@types/node": "^18.0.0",
68+
"@types/node": "^20",
6969
"@types/path-browserify": "^1.0.0",
7070
"@types/react": "^18",
7171
"@types/react-collapse": "^5.0.0",
@@ -115,7 +115,6 @@
115115
"lint-staged": "^13.2.3",
116116
"lodash-es": "^4.17.15",
117117
"lucide-react": "^0.263.1",
118-
"node-sass": "^9.0.0",
119118
"npm-debug-log-cleaner": "^1.0.3",
120119
"path-browserify": "^1.0.1",
121120
"postcss": "^8.4.27",
@@ -139,6 +138,7 @@
139138
"react-virtualized": "^9.22.5",
140139
"react-wrap-balancer": "^1.0.0",
141140
"rimraf": "^5.0.1",
141+
"sass": "^1.81.0",
142142
"semver": "^7.5.4",
143143
"shadcn": "^2.0.4",
144144
"smoothscroll-polyfill": "^0.4.4",
@@ -180,7 +180,7 @@
180180
"*.{js,jsx,ts,tsx}": "eslint --ext .mjs,.js,.jsx,.ts,.tsx"
181181
},
182182
"engines": {
183-
"node": ">=18.0.0"
183+
"node": "^20.0.0"
184184
},
185185
"snyk": true
186186
}

0 commit comments

Comments
 (0)