Use NodeJS 18 LTS as default runtime

This commit is contained in:
Jozef Izso 2023-12-12 15:11:55 +01:00
parent 601ab2b789
commit e091fade5c
5 changed files with 20 additions and 10 deletions

View file

@ -23,10 +23,10 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set Node.js 16.x - name: Set Node.js
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: 16.x node-version-file: '.nvmrc'
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm ci

View file

@ -14,7 +14,9 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: node --version - uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- run: npm ci - run: npm ci
- run: npm run build - run: npm run build
- run: npm run format-check - run: npm run format-check

2
.nvmrc
View file

@ -1 +1 @@
v18.7.0 v18.19.0

16
package-lock.json generated
View file

@ -25,7 +25,7 @@
"@types/adm-zip": "^0.5.0", "@types/adm-zip": "^0.5.0",
"@types/github-slugger": "^1.3.0", "@types/github-slugger": "^1.3.0",
"@types/jest": "^28.1.7", "@types/jest": "^28.1.7",
"@types/node": "^18.7.7", "@types/node": "^18.19.3",
"@types/picomatch": "^2.2.1", "@types/picomatch": "^2.2.1",
"@types/xml2js": "^0.4.8", "@types/xml2js": "^0.4.8",
"@typescript-eslint/eslint-plugin": "^5.33.1", "@typescript-eslint/eslint-plugin": "^5.33.1",
@ -1792,9 +1792,12 @@
} }
}, },
"node_modules/@types/node": { "node_modules/@types/node": {
"version": "18.17.18", "version": "18.19.3",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.17.18.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.3.tgz",
"integrity": "sha512-/4QOuy3ZpV7Ya1GTRz5CYSz3DgkKpyUptXuQ5PPce7uuyJAOR7r9FhkmxJfvcNUXyklbC63a+YvB3jxy7s9ngw==" "integrity": "sha512-k5fggr14DwAytoA/t8rPrIz++lXK7/DqckthCmoZOKNsEbJkId4Z//BqgApXBUGrGddrigYa1oqheo/7YmW4rg==",
"dependencies": {
"undici-types": "~5.26.4"
}
}, },
"node_modules/@types/picomatch": { "node_modules/@types/picomatch": {
"version": "2.3.0", "version": "2.3.0",
@ -7464,6 +7467,11 @@
"url": "https://github.com/sponsors/ljharb" "url": "https://github.com/sponsors/ljharb"
} }
}, },
"node_modules/undici-types": {
"version": "5.26.5",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
"integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="
},
"node_modules/universal-user-agent": { "node_modules/universal-user-agent": {
"version": "6.0.0", "version": "6.0.0",
"resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz",

View file

@ -47,7 +47,7 @@
"@types/adm-zip": "^0.5.0", "@types/adm-zip": "^0.5.0",
"@types/github-slugger": "^1.3.0", "@types/github-slugger": "^1.3.0",
"@types/jest": "^28.1.7", "@types/jest": "^28.1.7",
"@types/node": "^18.7.7", "@types/node": "^18.19.3",
"@types/picomatch": "^2.2.1", "@types/picomatch": "^2.2.1",
"@types/xml2js": "^0.4.8", "@types/xml2js": "^0.4.8",
"@typescript-eslint/eslint-plugin": "^5.33.1", "@typescript-eslint/eslint-plugin": "^5.33.1",