From 07f59992d6aa1146ab9879b047273d7409b43938 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Sun, 17 Sep 2023 17:10:57 +0200 Subject: [PATCH] chore: Pin NPM version (#1262) * chore: Pin NPM version * fixup! chore: Pin NPM version * chore: Use current Node.js release in CodeSandbox * chore: Use highest possible Node.js version in Codesandbox --- .codesandbox/ci.json | 2 +- .github/workflows/validate.yml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.codesandbox/ci.json b/.codesandbox/ci.json index e650cd6f..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": "14" + "node": "18" } diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 77ae2f42..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: @@ -80,6 +84,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: