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: 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"