Repository navigation
fix(types): migrate declarations to Rolldown and TypeScript 7 (#225) #1082
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 Build | |
| on: | |
| push: | |
| branches: [main, next] | |
| pull_request: | |
| branches: | |
| - "**" | |
| permissions: | |
| checks: write | |
| pages: write | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| run: | |
| if: github.repository_owner == 'ghiscoding' || github.repository_owner == 'renovate-bot' || contains(github.event.pull_request.labels.*.name, 'run workflow') | |
| name: Node ${{ matrix.node }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| - name: Retrieve current Date Time in EST | |
| shell: bash | |
| run: echo "START_TIME=$(TZ=":America/New_York" date -R|sed 's/.....$//')" >> $GITHUB_ENV | |
| - name: Echo date - ${{ env.START_TIME }} | |
| run: echo ${{ env.START_TIME }} | |
| - name: Clone repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| with: | |
| fetch-depth: 3 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6 | |
| with: | |
| run_install: false | |
| - name: Set NodeJS | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 | |
| with: | |
| node-version: 24 | |
| cache: 'pnpm' | |
| - name: Run pnpm install dependencies | |
| run: pnpm install | |
| - run: pnpm --version | |
| - run: node --version | |
| - name: Biome Lint Check | |
| run: pnpm biome:lint:check | |
| - name: Biome Format Check | |
| run: pnpm biome:format:check | |
| - name: Build Library | |
| run: pnpm build:lib | |
| - name: Run Vitest unit tests | |
| if: | | |
| !contains(github.event.head_commit.message, 'chore(release)') | |
| run: pnpm test | |
| - name: Install Playwright Chromium | |
| if: | | |
| !contains(github.event.head_commit.message, 'chore(release)') | |
| run: pnpm exec playwright install --with-deps chromium | |
| - name: Run Vitest browser export tests | |
| if: | | |
| !contains(github.event.head_commit.message, 'chore(release)') | |
| run: pnpm test:browser | |
| - name: Upload test coverage to Codecov | |
| uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Build Website (GitHub demo site) | |
| run: pnpm build:demo | |
| - name: Deploy Demo to gh-pages | |
| if: | | |
| github.ref == 'refs/heads/main' && | |
| (contains(github.event.head_commit.message, 'chore(release)') || contains(github.event.head_commit.message, '[refresh gh-pages]')) | |
| uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./packages/demo/dist |