Skip to content

Commit a229f87

Browse files
authored
Merge pull request #164 from probot/node-22-update
Upgrade to Node.js 22 and add devcontainer configuration
2 parents d97046c + c4fd028 commit a229f87

File tree

6 files changed

+79
-8
lines changed

6 files changed

+79
-8
lines changed

.devcontainer/devcontainer.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
3+
{
4+
"name": "Node.js & TypeScript",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
7+
"features": {
8+
"ghcr.io/devcontainers/features/aws-cli:1": {},
9+
"ghcr.io/audacioustux/devcontainers/aws-sam-cli:1": {}
10+
}
11+
12+
// Features to add to the dev container. More info: https://containers.dev/features.
13+
// "features": {},
14+
15+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
16+
// "forwardPorts": [],
17+
18+
// Use 'postCreateCommand' to run commands after the container is created.
19+
// "postCreateCommand": "yarn install",
20+
21+
// Configure tool-specific properties.
22+
// "customizations": {},
23+
24+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
25+
// "remoteUser": "root"
26+
}

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
1313
- uses: actions/setup-node@v4
1414
with:
15-
node-version: 20
15+
node-version: 22
1616
cache: npm
1717
- run: npm ci
1818
- uses: aws-actions/setup-sam@v2

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ jobs:
1515
- uses: actions/setup-node@v4
1616
with:
1717
cache: npm
18-
node-version: 20
18+
node-version: 22
1919
- run: npm ci
2020
- run: npm test

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-slim
1+
FROM node:22-slim
22
WORKDIR /usr/src/app
33
COPY package.json package-lock.json ./
44
RUN npm ci --production

package-lock.json

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

template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Resources:
2121
Description: Basic Auth Funtion
2222
CodeUri: .
2323
Handler: handler.webhooks
24-
Runtime: nodejs20.x
24+
Runtime: nodejs22.x
2525
MemorySize: 256
2626
Timeout: 20
2727
Events:

0 commit comments

Comments
 (0)