From a33f7efb02e500609dc15d0c544c08894ed6e3ba Mon Sep 17 00:00:00 2001 From: eps1lon Date: Sat, 16 Sep 2023 10:54:55 +0200 Subject: [PATCH 1/4] chore: Pin NPM version --- .github/workflows/validate.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 77ae2f42..c16fa1d9 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -80,6 +80,10 @@ jobs: with: node-version: 14 + # Ideally done by actions/setup-node: https://github.com/actions/setup-node/issues/213 + - name: Setup package manager + run: npm install -g npm@9.2.0 + - name: 📥 Download deps uses: bahmutov/npm-install@v1 with: From afad996567ad15ac69bb0c85b5e2ae0ce0415f79 Mon Sep 17 00:00:00 2001 From: eps1lon Date: Sat, 16 Sep 2023 11:12:29 +0200 Subject: [PATCH 2/4] fixup! chore: Pin NPM version --- .github/workflows/validate.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index c16fa1d9..66ea1b59 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -43,6 +43,10 @@ jobs: with: node-version: ${{ matrix.node }} + # Ideally done by actions/setup-node: https://github.com/actions/setup-node/issues/213 + - name: Setup package manager + run: npm install -g npm@9.2.0 + - name: 📥 Download deps uses: bahmutov/npm-install@v1 with: From b4076a3f81910935f8c968602e8da91421d7612b Mon Sep 17 00:00:00 2001 From: eps1lon Date: Sat, 16 Sep 2023 11:20:39 +0200 Subject: [PATCH 3/4] chore: Use current Node.js release in CodeSandbox --- .codesandbox/ci.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codesandbox/ci.json b/.codesandbox/ci.json index e650cd6f..a5715a95 100644 --- a/.codesandbox/ci.json +++ b/.codesandbox/ci.json @@ -1,5 +1,5 @@ { "installCommand": "install:csb", "sandboxes": ["github/kentcdodds/react-testing-library-examples"], - "node": "14" + "node": "20" } From b8b1ca57ad54257685f9669c6a43c80f4a7125f2 Mon Sep 17 00:00:00 2001 From: eps1lon Date: Sat, 16 Sep 2023 11:22:02 +0200 Subject: [PATCH 4/4] chore: Use highest possible Node.js version in Codesandbox --- .codesandbox/ci.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codesandbox/ci.json b/.codesandbox/ci.json index a5715a95..c66df417 100644 --- a/.codesandbox/ci.json +++ b/.codesandbox/ci.json @@ -1,5 +1,5 @@ { "installCommand": "install:csb", "sandboxes": ["github/kentcdodds/react-testing-library-examples"], - "node": "20" + "node": "18" }