From f44fe225a8cf0f67fdb453ef558f0c54a107346f Mon Sep 17 00:00:00 2001 From: Jeremy Kahn Date: Sun, 7 Aug 2022 21:36:52 -0500 Subject: [PATCH] chore: use node 18 and npm 8 --- .github/workflows/ci.yml | 2 +- .github/workflows/deploy.yml | 2 +- package.json | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 65f7f36..72b2ece 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v2.3.1 - uses: actions/setup-node@v1 with: - node-version: 'lts/*' + node-version: 18 - run: npm ci --no-optional - run: npm test diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f291d16..5811ac4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,7 +17,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v3 with: - node-version: 'lts/*' + node-version: 18 cache: 'npm' - name: Build diff --git a/package.json b/package.json index 6e418bc..4a16a36 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,10 @@ "react-app/jest" ] }, + "engines": { + "node": "18.x", + "npm": "8.x" + }, "browserslist": { "production": [ ">0.2%",