diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml index 124dc58..84aa7c7 100644 --- a/.github/workflows/aws.yml +++ b/.github/workflows/aws.yml @@ -17,7 +17,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 20.x - name: Install Packages run: npm ci @@ -45,6 +45,7 @@ jobs: version: - 16 - 18 + - 20 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2d78eed..166e1da 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 20.x registry-url: https://registry.npmjs.org/ - run: npm ci diff --git a/Makefile b/Makefile index 9872498..16c2c65 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ pretest: npm install --prefix _/amazon/handlers puppeteer-core@latest --bin-links=false --fund=false --omit=optional --omit=dev --package-lock=false --save=false test: - sam local invoke --template _/amazon/template.yml --event _/amazon/events/example.com.json node18 + sam local invoke --template _/amazon/template.yml --event _/amazon/events/example.com.json node20 .fonts.zip: zip -9 --filesync --move --recurse-paths .fonts.zip .fonts/ diff --git a/_/amazon/template.yml b/_/amazon/template.yml index 046f903..14fddaa 100644 --- a/_/amazon/template.yml +++ b/_/amazon/template.yml @@ -37,3 +37,14 @@ Resources: - AWSLambdaBasicExecutionRole - AWSXRayDaemonWriteAccess Tracing: Active + node20: + Type: AWS::Serverless::Function + Properties: + Layers: + - !Ref layer + Handler: handlers/index.handler + Runtime: nodejs20.x + Policies: + - AWSLambdaBasicExecutionRole + - AWSXRayDaemonWriteAccess + Tracing: Active diff --git a/bin/aws.tar.br b/bin/aws.tar.br index ab8e70e..1fb68a5 100644 Binary files a/bin/aws.tar.br and b/bin/aws.tar.br differ