From fbf213d47a700debd15202e3f59f852b8edfe2a1 Mon Sep 17 00:00:00 2001 From: Sebastian Bille Date: Wed, 11 May 2022 03:30:37 +0200 Subject: [PATCH] feat: add nodejs16.x runtime support (#306) --- .github/workflows/pull.yml | 2 +- .github/workflows/release.yml | 2 +- README.md | 1 + src/helper.ts | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index 0c48fe01..fda69ce6 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [12.x, 14.x] + node-version: [12.x, 14.x, 16.x] steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1ccbe420..810da296 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [12.x, 14.x] + node-version: [12.x, 14.x, 16.x] steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} diff --git a/README.md b/README.md index e8365663..4f4accff 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,7 @@ AWS: | Runtime | Target | | ------------ | -------- | +| `nodejs16.x` | `node16` | | `nodejs14.x` | `node14` | | `nodejs12.x` | `node12` | diff --git a/src/helper.ts b/src/helper.ts index 72e09167..cc39ef6a 100644 --- a/src/helper.ts +++ b/src/helper.ts @@ -142,6 +142,7 @@ export const doSharePath = (child, parent) => { export const providerRuntimeMatcher = Object.freeze({ aws: { + 'nodejs16.x': 'node16', 'nodejs14.x': 'node14', 'nodejs12.x': 'node12', },