WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 6988b75

Browse files
committed
update to node 22
1 parent b21971e commit 6988b75

File tree

8 files changed

+16
-17
lines changed

8 files changed

+16
-17
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM nikolaik/python-nodejs:python3.11-nodejs18
1+
FROM nikolaik/python-nodejs:python3.13-nodejs22
22

33
ARG USERNAME=sam-user
44
ARG USER_UID=2000

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "Python 3.11 Node.js 18 aws sam-cli",
2+
"name": "Python 3.13 Node.js 22 aws sam-cli",
33
"build": {
44
"dockerfile": "Dockerfile"
55
},

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414

1515
- name: Setup Node.js environment
16-
uses: actions/setup-node@v3
16+
uses: actions/setup-node@v4
1717
with:
18-
node-version: '18'
18+
node-version: '22'
1919

2020
- name: Running npm install and installing gulp
2121
run: |
@@ -51,7 +51,7 @@ jobs:
5151
AWS_REGION: <region>
5252
SOURCE_DIR: web/dist
5353
- name: Invalidate Cloudfront
54-
uses: chetan/invalidate-cloudfront-action@v1.2
54+
uses: chetan/invalidate-cloudfront-action@v2
5555
env:
5656
DISTRIBUTION: <cloudfront-dist-id>
5757
PATHS: '/*'

.github/workflows/pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414

1515
- name: Setup Node.js environment
16-
uses: actions/setup-node@v3
16+
uses: actions/setup-node@v4
1717
with:
18-
node-version: '18'
18+
node-version: '22'
1919

2020
- name: Running npm install and installing gulp
2121
run: |

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ vendor
55
*.min.js
66
css
77
.DS_Store
8-
web/dist
8+
web/dist
9+
.op
10+
.envrc

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The cloudformation template uses the [deploy-to-s3 app](https://serverlessrepo.a
2525
- Setup reCaptcha v2 here: [https://www.google.com/recaptcha/admin](https://www.google.com/recaptcha/admin). Note both the client and server side site keys. See the [recaptcha documentation](https://developers.google.com/recaptcha/docs/invisible) for more details.
2626
- [AWS sam cli](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html)
2727
- [Setup a named profile for sam cli](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html). Let's assume your named profile is called `sidney`.
28-
- [Node.js](https://nodejs.org/en/) [v18](https://github.com/nvm-sh/nvm)
28+
- [Node.js](https://nodejs.org/en/) [v22](https://github.com/nvm-sh/nvm)
2929

3030
## Deploying to AWS
3131
There are 2 resources that need to be deployed in us-east-1 region; 1) [SSL/TLS Certificate](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cnames-and-https-requirements.html#https-requirements-aws-region), and 2) [edge lambda](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-requirements-limits.html#lambda-requirements-cloudfront-triggers) for SEO. Everything else can be deployed in your region of choice. Therefore, if you want to deploy to any AWS region other than us-east-1, you need to deploy 2 stacks; one stack for the resources that need to be in us-east-1 and another stack in your chosen region. If your region of choice is us-east-1 you need only deploy one stack, and that's a wee bit simpler.

tempate-east.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Resources:
2222
Description: CloudFront S3 index.html edge lambda
2323
Handler: index.handler
2424
CodeUri: src/cloudFrontS3IndexHtml
25-
Runtime: nodejs18.x
25+
Runtime: nodejs22.x
2626
Timeout: 5
2727
AutoPublishAlias: riznob
2828
AssumeRolePolicyDocument:

template.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ Parameters:
2828
Type: String
2929
Description: SSL Certificate ARN
3030
Default: None
31-
AllowedValues:
32-
- true
33-
- false
3431
Conditions:
3532
IsUsEast1: !Equals
3633
- !Ref AWS::Region
@@ -64,7 +61,7 @@ Resources:
6461
Description: Contact us form processor
6562
Handler: index.handler
6663
CodeUri: src/contactUsFormProcessor
67-
Runtime: nodejs18.x
64+
Runtime: nodejs22.x
6865
Timeout: 5
6966
Policies:
7067
- SNSPublishMessagePolicy:
@@ -89,7 +86,7 @@ Resources:
8986
Description: CloudFront S3 index.html edge lambda
9087
Handler: index.handler
9188
CodeUri: src/cloudFrontS3IndexHtml
92-
Runtime: nodejs18.x
89+
Runtime: nodejs22.x
9390
Timeout: 5
9491
AutoPublishAlias: riznob
9592
AssumeRolePolicyDocument:

0 commit comments

Comments
 (0)