Skip to content

Commit 2f3d350

Browse files
committed
chore(*): update node
1 parent 938d1ce commit 2f3d350

File tree

3 files changed

+18
-21
lines changed

3 files changed

+18
-21
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
runs-on: ubuntu-latest
77
strategy:
88
matrix:
9-
node-version: [16.x, 18.x, 20.x]
9+
node-version: [18.x, 20.x, 22.x]
1010
steps:
1111
- name: Checkout
1212
uses: actions/checkout@v4
@@ -15,9 +15,6 @@ jobs:
1515
with:
1616
node-version: ${{ matrix.node-version }}
1717
cache: 'npm'
18-
- name: Up/Downgrade NPM
19-
if: ${{ matrix.node-version == '16.x' }}
20-
run: npm i -g npm@9 --registry=https://registry.npmjs.org
2118
- name: Install
2219
run: npm ci
2320
- name: Lint and Test
@@ -43,10 +40,8 @@ jobs:
4340
- name: Setup NodeJS
4441
uses: actions/setup-node@v4
4542
with:
46-
node-version: '18'
43+
node-version: '20'
4744
cache: 'npm'
48-
- name: Downgrade NPM
49-
run: npm i -g npm@9 --registry=https://registry.npmjs.org
5045
- name: Install and generate docs
5146
run: npm ci
5247
- name: Publish

package-lock.json

Lines changed: 12 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"scripts": {
55
"precompile": "lerna run precompile",
66
"compile": "tsc -p tsconfig-build.json",
7-
"postinstall": "husky install",
7+
"postinstall": "husky",
88
"prepare": "husky && npm run compile && npm run dist",
99
"lint": "eslint . --ext .js,.ts,.tsx --max-warnings 0 --cache --cache-location 'node_modules/.cache/.eslintcache'",
1010
"lintfix": "npm run lint -- --fix",
@@ -26,8 +26,8 @@
2626
"url": "[email protected]:sclable/nestjs-libs.git"
2727
},
2828
"engines": {
29-
"node": "^16.19.0 || ^18.14.0 || ^20.2.0",
30-
"npm": "^8.19.0 || ^9.6.0"
29+
"node": "^18.14.0 || ^20.2.0 || ^22.8.0",
30+
"npm": "^9.6.0 || ^10.8.0"
3131
},
3232
"dependencies": {
3333
"@sclable/nestjs-async-provider": "file:packages/async-provider",
@@ -58,7 +58,7 @@
5858
"@types/fs-extra": "11.0.4",
5959
"@types/jest": "29.5.12",
6060
"@types/minio": "7.1.1",
61-
"@types/node": "20.14.11",
61+
"@types/node": "22.5.4",
6262
"@types/passport-jwt": "4.0.1",
6363
"@types/passport-local": "1.0.38",
6464
"@types/pluralize": "0.0.33",

0 commit comments

Comments
 (0)