diff --git a/.codesandbox/ci.json b/.codesandbox/ci.json new file mode 100644 index 0000000..002bafb --- /dev/null +++ b/.codesandbox/ci.json @@ -0,0 +1,5 @@ +{ + "installCommand": "install:csb", + "sandboxes": ["new", "github/kentcdodds/react-testing-library-examples"], + "node": "18" +} diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 6b5280a..cd107a5 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -29,7 +29,7 @@ jobs: # Otherwise we would not know if the problem is tied to the Node.js version fail-fast: false matrix: - node: [14, 16, 18] + node: [14, 16, 18, 20] runs-on: ubuntu-latest steps: - name: ⬇️ Checkout repo @@ -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: @@ -64,6 +68,7 @@ jobs: release: permissions: contents: write # to create release tags (cycjimmy/semantic-release-action) + issues: write # to post release that resolves an issue needs: main runs-on: ubuntu-latest @@ -79,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: diff --git a/package.json b/package.json index 903ed09..b28b4a9 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,10 @@ "kcd-scripts": "^11.0.0", "typescript": "^4.1.2" }, + "overrides": { + "browserslist": "4.21.8", + "caniuse-lite": "1.0.30001502" + }, "eslintConfig": { "extends": [ "./node_modules/kcd-scripts/eslint.js",