diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 712f4fb..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,6 +36,6 @@ jobs: - uses: aboutbits/github-actions-node/setup-and-install@v2 with: node-version: ${{ matrix.node_version }} - - run: npm run lint - - run: npm run typecheck - - run: npm run test + - 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: