chore: version package #1116
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: Pull request | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize, ready_for_review] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Clone repository | |
| uses: actions/checkout@v6 | |
| - name: Install dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Lint code | |
| run: bun format && bun lint:fix | |
| - uses: stefanzweifel/git-auto-commit-action@v7 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| commit_message: 'chore: format' | |
| commit_user_name: 'github-actions[bot]' | |
| commit_user_email: 'github-actions[bot]@users.noreply.github.com' | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Clone repository | |
| uses: actions/checkout@v6 | |
| - name: Install dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Build | |
| run: bun run build | |
| package-types: | |
| name: Package types (node10 + bundler consumers) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Clone repository | |
| uses: actions/checkout@v6 | |
| - name: Install dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: "22" | |
| - name: Build permissionless | |
| run: bun run build:permissionless:tsgo | |
| - name: Pack tarball into fixture | |
| working-directory: packages/permissionless | |
| run: npm pack --pack-destination ../../.github/fixtures/type-consumer | |
| - name: Install fixture dependencies | |
| working-directory: .github/fixtures/type-consumer | |
| run: | | |
| npm install --no-package-lock | |
| npm install --no-package-lock --no-save ./permissionless-*.tgz | |
| - name: Type-check as a node10 consumer | |
| working-directory: .github/fixtures/type-consumer | |
| run: npx tsc -p tsconfig.node10.json | |
| - name: Type-check as a bundler consumer | |
| working-directory: .github/fixtures/type-consumer | |
| run: npx tsc -p tsconfig.bundler.json | |
| - name: Lint package publishing metadata (advisory) | |
| working-directory: packages/permissionless | |
| continue-on-error: true | |
| run: npx --yes publint --strict | |
| docker-e2e: | |
| name: E2E-Coverage | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install dependencies | |
| uses: ./.github/actions/install-dependencies | |
| with: | |
| install-foundry: 'true' | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: "v22.2.0" | |
| - name: Create .env file | |
| run: | | |
| echo "VITE_FORK_RPC_URL=${{ secrets.VITE_FORK_RPC_URL }}" > .env.test | |
| - name: Run tests & coverage | |
| run: bun run test:ci | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v5 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| size: | |
| name: Size | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Clone repository | |
| uses: actions/checkout@v6 | |
| - name: Install dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Report bundle size | |
| uses: andresz1/size-limit-action@master | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| package_manager: bun | |
| build_script: build:size |