diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cbeccb3154..461b6fe010 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,7 +32,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 cache: npm - run: npm install - run: npm run lint diff --git a/.github/workflows/update-prettier.yml b/.github/workflows/update-prettier.yml index d63b6d2b6d..5bf96956ef 100644 --- a/.github/workflows/update-prettier.yml +++ b/.github/workflows/update-prettier.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/setup-node@v4 with: cache: npm - node-version: 16 + node-version: 22 - run: npm ci - run: npm run lint:fix - uses: gr2m/create-or-update-pull-request-action@v1.x diff --git a/package-lock.json b/package-lock.json index 7fd547a8fe..8e3b091178 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "@types/jsesc": "^3.0.1", "@types/lodash.camelcase": "^4.3.7", "@types/lodash.kebabcase": "^4.1.7", - "@types/node": "^20.0.0", + "@types/node": "^22.0.0", "@types/rimraf": "^4.0.5", "@types/validate-npm-package-name": "^4.0.0", "prettier": "^3.2.4", @@ -260,13 +260,13 @@ } }, "node_modules/@types/node": { - "version": "20.16.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.16.1.tgz", - "integrity": "sha512-zJDo7wEadFtSyNz5QITDfRcrhqDvQI1xQNQ0VoizPjM/dVAODqqIUWbJPkvsxmTI0MYRGRikcdjMPhOssnPejQ==", + "version": "22.17.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.17.1.tgz", + "integrity": "sha512-y3tBaz+rjspDTylNjAX37jEC3TETEFGNJL6uQDxwF9/8GLLIjW1rvVHlynyuUKMnMr1Roq8jOv3vkopBjC4/VA==", "dev": true, "license": "MIT", "dependencies": { - "undici-types": "~6.19.2" + "undici-types": "~6.21.0" } }, "node_modules/@types/rimraf": { @@ -3008,9 +3008,9 @@ } }, "node_modules/undici-types": { - "version": "6.19.8", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", - "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", "dev": true, "license": "MIT" }, diff --git a/package.json b/package.json index 1c8e08be16..d158680031 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "@types/jsesc": "^3.0.1", "@types/lodash.camelcase": "^4.3.7", "@types/lodash.kebabcase": "^4.1.7", - "@types/node": "^20.0.0", + "@types/node": "^22.0.0", "@types/rimraf": "^4.0.5", "@types/validate-npm-package-name": "^4.0.0", "prettier": "^3.2.4", diff --git a/templates/__common__/Dockerfile b/templates/__common__/Dockerfile index bb1a3aaa5e..3c002e95f4 100644 --- a/templates/__common__/Dockerfile +++ b/templates/__common__/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20-slim +FROM node:22-slim WORKDIR /usr/src/app COPY package.json package-lock.json ./ RUN npm ci --production diff --git a/templates/basic-ts/package.json b/templates/basic-ts/package.json index 4fe63bb6aa..6296196492 100644 --- a/templates/basic-ts/package.json +++ b/templates/basic-ts/package.json @@ -20,7 +20,7 @@ "probot": "^13.4.5" }, "devDependencies": { - "@types/node": "^20.0.0", + "@types/node": "^22.0.0", "nock": "^14.0.5", "smee-client": "^2.0.0", "vitest": "^2.0.0",