From 4ef4471c6a60f387cfe7db87b7020cf02a46e9e7 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Wed, 12 Jul 2023 18:21:31 +0200 Subject: [PATCH] Jump to Node 18 Force Serverless >=3.25.0 because the node 18 engine was added in 3.25.0. --- .babelrc | 2 +- .github/workflows/tests.yml | 2 +- .nvmrc | 2 +- README.md | 4 ++-- serverless.yml | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.babelrc b/.babelrc index bcda6e19..4f86de99 100644 --- a/.babelrc +++ b/.babelrc @@ -9,7 +9,7 @@ "@babel/preset-env", { "targets": { - "node": "16" + "node": "18" } } ] diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 615796ee..f3f17571 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,7 +19,7 @@ jobs: strategy: matrix: - node-version: [16.x] + node-version: [18.x] steps: - name: checkout diff --git a/.nvmrc b/.nvmrc index b6a7d89c..3c032078 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -16 +18 diff --git a/README.md b/README.md index 0f5348b8..cdb7f825 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,8 @@ Available lambdas: ## Prerequisites -- Node.js 14 -- Serverless CLI v3.16.0 or later (`npm install -g serverless@3`) +- Node.js 18 +- Serverless CLI v3.25.0 or later (`npm install -g serverless@3`) - An AWS account - Defined [provider credentials](https://serverless.com/framework/docs/providers/aws/guide/credentials/) diff --git a/serverless.yml b/serverless.yml index a1050635..b91d0188 100644 --- a/serverless.yml +++ b/serverless.yml @@ -1,4 +1,4 @@ -frameworkVersion: ">=3.17.0" +frameworkVersion: ">=3.25.0" service: wallabag-serverless-bot @@ -15,7 +15,7 @@ custom: provider: name: aws - runtime: nodejs16.x + runtime: nodejs18.x profile: default region: ${opt:region, 'eu-west-1'} versionFunctions: false