From 2e208880e41be613543067f9efcd24b9957bd82c Mon Sep 17 00:00:00 2001 From: Alex Lanz Date: Thu, 20 Mar 2025 11:06:08 +0100 Subject: [PATCH 1/2] add automatic prerelase flagging --- .github/workflows/main.yml | 24 ++++++++++++++++++++++-- .github/workflows/release.yml | 3 ++- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 110ef3f..f9f16ab 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,9 +7,27 @@ concurrency: cancel-in-progress: true jobs: + checks: + runs-on: ubuntu-22.04 + timeout-minutes: 10 + strategy: + matrix: + node_version: [16, 18, 20] + steps: + - uses: actions/checkout@v4 + - uses: aboutbits/github-actions-node/setup-and-install@v2 + with: + node-version: ${{ matrix.node_version }} + - name: Lint + run: npm run lint + shell: bash + - name: Typecheck + run: npm run typecheck + shell: bash + test: runs-on: ubuntu-22.04 - timeout-minutes: 15 + timeout-minutes: 10 strategy: matrix: node_version: [16, 18, 20] @@ -18,4 +36,6 @@ jobs: - uses: aboutbits/github-actions-node/setup-and-install@v2 with: node-version: ${{ matrix.node_version }} - - run: npm run checks + - name: Test + run: npm run test + shell: bash diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 419d92a..122bd18 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,8 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, tag_name: '${{ github.ref }}', - name: 'Release ${{ github.ref_name }}' + name: 'Release ${{ github.ref_name }}', + prerelease: '${{ github.ref_name }}'.includes('-') }) - uses: aboutbits/github-actions-node/setup-and-install@v2 with: From 9c9ce911d1b3f1ffd3183b8aa0a981efc086bc16 Mon Sep 17 00:00:00 2001 From: Lukas Weiss Date: Wed, 23 Jul 2025 08:49:51 +0200 Subject: [PATCH 2/2] add next 15 support --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8c3218b..a297b20 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,7 @@ "vitest": "^1.4.0" }, "peerDependencies": { - "next": "^12.0.0 || ^13.0.0 || ^14.0.0", + "next": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0", "react": "^16.0.0 || ^17.0.0 || ^18.0.0", "react-router-dom": "^6.0.0", "zod": "^3.0.0"