chore: use node 24 in ci #346
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - '**' | |
| permissions: | |
| id-token: write # Required for OIDC | |
| contents: write # Required to create a Github release | |
| pull-requests: write # Required to add tags to pull requests | |
| jobs: | |
| tests: | |
| name: tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [windows-latest, ubuntu-latest, macos-latest] | |
| node: [24] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{matrix.node}} | |
| - run: pnpm install | |
| - run: pnpm build | |
| - name: Lint | |
| run: pnpm lint | |
| - name: Check Types | |
| run: pnpm run check-types | |
| - name: Unit tests | |
| run: pnpm test:unit | |
| - name: E2e tests | |
| run: pnpm test:e2e | |
| maybe-release: | |
| name: release | |
| runs-on: ubuntu-latest | |
| needs: tests | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
| steps: | |
| - uses: googleapis/release-please-action@v4 | |
| id: release | |
| with: | |
| release-type: node | |
| monorepo-tags: true | |
| changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false}]' | |
| - uses: actions/checkout@v6 | |
| if: ${{ steps.release.outputs.releases_created }} | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| if: ${{ steps.release.outputs.releases_created }} | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| if: ${{ steps.release.outputs.releases_created }} | |
| - name: Install dependencies | |
| run: pnpm install | |
| if: ${{ steps.release.outputs.releases_created }} | |
| - name: Build packages | |
| run: pnpm build | |
| if: ${{ steps.release.outputs.releases_created }} | |
| - run: pnpm publish --recursive --access public --provenance --no-git-check | |
| if: ${{ steps.release.outputs.releases_created }} |