From f349146ce11af614ad9db19537c5bc959b7c9897 Mon Sep 17 00:00:00 2001 From: Ray Krueger Date: Wed, 22 Mar 2023 14:01:44 +0000 Subject: [PATCH] Set node version to 16 --- .github/workflows/build.yml | 8 +++++--- .github/workflows/release.yml | 10 ++++++---- .github/workflows/upgrade-main.yml | 6 ++++-- .projen/deps.json | 2 +- .projen/tasks.json | 2 +- .projenrc.js | 1 + package.json | 5 ++++- yarn.lock | 8 ++++---- 8 files changed, 26 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b2096af..66aac52 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,6 +19,10 @@ jobs: with: ref: ${{ github.event.pull_request.head.ref }} repository: ${{ github.event.pull_request.head.repo.full_name }} + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 16.0.0 - name: Install dependencies run: yarn install --check-files - name: build @@ -48,8 +52,6 @@ jobs: with: name: build-artifact path: dist - container: - image: jsii/superchain:1-buster-slim-node14 self-mutation: needs: build runs-on: ubuntu-latest @@ -87,7 +89,7 @@ jobs: steps: - uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 16.0.0 - name: Download build artifacts uses: actions/download-artifact@v3 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0475824..07b9112 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,6 +24,10 @@ jobs: run: |- git config user.name "github-actions" git config user.email "github-actions@github.com" + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 16.0.0 - name: Install dependencies run: yarn install --check-files --frozen-lockfile - name: release @@ -41,8 +45,6 @@ jobs: with: name: build-artifact path: dist - container: - image: jsii/superchain:1-buster-slim-node14 release_github: name: Publish to GitHub Releases needs: release @@ -53,7 +55,7 @@ jobs: steps: - uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 16.0.0 - name: Download build artifacts uses: actions/download-artifact@v3 with: @@ -82,7 +84,7 @@ jobs: steps: - uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 16.0.0 - name: Download build artifacts uses: actions/download-artifact@v3 with: diff --git a/.github/workflows/upgrade-main.yml b/.github/workflows/upgrade-main.yml index 09e420c..6163608 100644 --- a/.github/workflows/upgrade-main.yml +++ b/.github/workflows/upgrade-main.yml @@ -18,6 +18,10 @@ jobs: uses: actions/checkout@v3 with: ref: main + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 16.0.0 - name: Install dependencies run: yarn install --check-files --frozen-lockfile - name: Upgrade dependencies @@ -33,8 +37,6 @@ jobs: with: name: .repo.patch path: .repo.patch - container: - image: jsii/superchain:1-buster-slim-node14 pr: name: Create Pull Request needs: upgrade diff --git a/.projen/deps.json b/.projen/deps.json index cc90c62..6852236 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -7,7 +7,7 @@ }, { "name": "@types/node", - "version": "^14", + "version": "^16", "type": "build" }, { diff --git a/.projen/tasks.json b/.projen/tasks.json index 6223384..802477f 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -221,7 +221,7 @@ "description": "Run tests", "steps": [ { - "exec": "jest --passWithNoTests --updateSnapshot", + "exec": "jest --passWithNoTests --coverageProvider=v8 --updateSnapshot", "receiveArgs": true }, { diff --git a/.projenrc.js b/.projenrc.js index 7e8ef88..c0cc9e0 100644 --- a/.projenrc.js +++ b/.projenrc.js @@ -9,6 +9,7 @@ const project = new awscdk.AwsCdkConstructLibrary({ repositoryUrl: 'https://github.com/raykrueger/cdk-game-server.git', releaseToNpm: true, npmAccess: NpmAccess.PUBLIC, + minNodeVersion: '16.0.0', catalog: { announce: false, twitter: 'raykrueger', diff --git a/package.json b/package.json index ab3cff9..e31d698 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ }, "devDependencies": { "@types/jest": "^27", - "@types/node": "^14", + "@types/node": "^16", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", "aws-cdk-lib": "2.69.0", @@ -71,6 +71,9 @@ "keywords": [ "cdk" ], + "engines": { + "node": ">= 16.0.0" + }, "main": "lib/index.js", "license": "Apache-2.0", "publishConfig": { diff --git a/yarn.lock b/yarn.lock index 02796d5..7e6a22c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -953,10 +953,10 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-18.15.3.tgz#f0b991c32cfc6a4e7f3399d6cb4b8cf9a0315014" integrity sha512-p6ua9zBxz5otCmbpb5D3U4B5Nanw6Pk3PPyX05xnxbB/fRv71N7CPmORg7uAD5P70T0xmx1pzAx/FUfa5X+3cw== -"@types/node@^14": - version "14.18.38" - resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.38.tgz#2169ca4b70aa59aa5a8923509e50619dde48b0cf" - integrity sha512-zMRIidN2Huikv/+/U7gRPFYsXDR/7IGqFZzTLnCEj5+gkrQjsowfamaxEnyvArct5hxGA3bTxMXlYhH78V6Cew== +"@types/node@^16": + version "16.18.18" + resolved "https://registry.yarnpkg.com/@types/node/-/node-16.18.18.tgz#06cb0eeb5a0175d26d99b7acf4db613ca30cb07f" + integrity sha512-fwGw1uvQAzabxL1pyoknPlJIF2t7+K90uTqynleKRx24n3lYcxWa3+KByLhgkF8GEAK2c7hC8Ki0RkNM5H15jQ== "@types/normalize-package-data@^2.4.0": version "2.4.1"