6.11.0 #1929
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - 'v*' | |
| pull_request: | |
| jobs: | |
| install_and_test_win: | |
| runs-on: windows-latest | |
| timeout-minutes: 5 | |
| strategy: | |
| matrix: | |
| node-version: [24] | |
| name: Windows - Node ${{ matrix.node-version }} | |
| steps: | |
| - uses: actions/checkout@v4.2.2 | |
| with: | |
| fetch-depth: 0 | |
| - uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: Install Dependencies | |
| run: pnpm install --frozen-lockfile --prefer-offline | |
| - name: Typecheck | |
| run: pnpm typecheck | |
| - name: Build | |
| run: pnpm build | |
| - name: Test | |
| shell: cmd | |
| run: | | |
| pnpm test || exit /b 1 | |
| pnpm test:post || exit /b 1 | |
| install_and_test: | |
| runs-on: [ubuntu-latest] | |
| timeout-minutes: 5 | |
| strategy: | |
| matrix: | |
| include: | |
| - node-version: 20 | |
| typescript-version: 6.0.2 | |
| react-types-version: 19.2.14 | |
| react-dom-types-version: 19.2.3 | |
| - node-version: 22 | |
| typescript-version: 6.0.2 | |
| react-types-version: 19.2.14 | |
| react-dom-types-version: 19.2.3 | |
| - node-version: 24 | |
| typescript-version: 6.0.2 | |
| react-types-version: 19.2.14 | |
| react-dom-types-version: 19.2.3 | |
| - node-version: 24 | |
| typescript-version: 5.9.3 | |
| react-types-version: 18.3.28 | |
| react-dom-types-version: 18.3.7 | |
| name: Linux - Node ${{ matrix.node-version }} - TS ${{ matrix.typescript-version }} | |
| steps: | |
| - uses: actions/checkout@v4.2.2 | |
| with: | |
| fetch-depth: 0 | |
| - uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: Install Dependencies | |
| run: pnpm install --frozen-lockfile --prefer-offline | |
| - name: Setup TypeScript and React types | |
| run: pnpm add --save-dev "typescript@${{ matrix.typescript-version }}" "@types/react@${{ matrix.react-types-version }}" "@types/react-dom@${{ matrix.react-dom-types-version }}" --prefer-offline | |
| - name: Typecheck | |
| run: pnpm typecheck | |
| - name: Build | |
| run: pnpm build | |
| - name: Test | |
| run: | | |
| pnpm test | |
| pnpm test:post | |
| release: | |
| runs-on: ubuntu-latest | |
| needs: [install_and_test] | |
| if: startsWith(github.ref, 'refs/tags/') | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4.2.2 | |
| - uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Install Dependencies | |
| run: pnpm install --frozen-lockfile --prefer-offline | |
| - name: Determine tag | |
| id: determine_tag | |
| run: | | |
| echo "tag=$(echo $GITHUB_REF | grep -Eo 'alpha|beta|rc')" >> $GITHUB_OUTPUT | |
| - name: Publish to versioned tag | |
| if: steps.determine_tag.outputs.tag != '' | |
| run: | | |
| echo "Publishing to ${{ steps.determine_tag.outputs.tag }} tag" | |
| npm publish --tag ${{ steps.determine_tag.outputs.tag }} --access public | |
| env: | |
| NPM_CONFIG_PROVENANCE: true | |
| - name: Publish to latest | |
| if: steps.determine_tag.outputs.tag == '' | |
| run: | | |
| echo "Publishing to latest" | |
| npm publish --access public | |
| env: | |
| NPM_CONFIG_PROVENANCE: true |