Skip to content

Commit

Permalink
chore: upgrade node
Browse files Browse the repository at this point in the history
  • Loading branch information
geekdada committed Nov 25, 2024
1 parent 6092a5c commit 53574e0
Show file tree
Hide file tree
Showing 6 changed files with 185 additions and 666 deletions.
58 changes: 29 additions & 29 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,37 +14,37 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18]
node-version: [20]

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: yarn install, build
run: |
yarn install
yarn build
- name: test, report coverage
run: |
yarn verify-translation
yarn test
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: yarn install, build
run: |
yarn install
yarn build
- name: test, report coverage
run: |
yarn verify-translation
yarn test
# - uses: codecov/codecov-action@v1
# if: success() && matrix.os == 'ubuntu-latest'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-builtin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18]
node-version: [20]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18]
node-version: [20]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"@types/jest": "^29.5.3",
"@types/loadable__component": "^5.13.0",
"@types/lodash-es": "^4.17.8",
"@types/node": "^18.0.0",
"@types/node": "^20",
"@types/path-browserify": "^1.0.0",
"@types/react": "^18",
"@types/react-collapse": "^5.0.0",
Expand Down Expand Up @@ -115,7 +115,6 @@
"lint-staged": "^13.2.3",
"lodash-es": "^4.17.15",
"lucide-react": "^0.263.1",
"node-sass": "^9.0.0",
"npm-debug-log-cleaner": "^1.0.3",
"path-browserify": "^1.0.1",
"postcss": "^8.4.27",
Expand All @@ -139,6 +138,7 @@
"react-virtualized": "^9.22.5",
"react-wrap-balancer": "^1.0.0",
"rimraf": "^5.0.1",
"sass": "^1.81.0",
"semver": "^7.5.4",
"shadcn": "^2.0.4",
"smoothscroll-polyfill": "^0.4.4",
Expand Down Expand Up @@ -180,7 +180,7 @@
"*.{js,jsx,ts,tsx}": "eslint --ext .mjs,.js,.jsx,.ts,.tsx"
},
"engines": {
"node": ">=18.0.0"
"node": "^20.0.0"
},
"snyk": true
}
Loading

0 comments on commit 53574e0

Please sign in to comment.