refactor(vercel): better o11y for isr cached routes (#3560) #7867
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: | |
| - v2 | |
| - v3 | |
| pull_request: | |
| branches: | |
| - v2 | |
| - v3 | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - run: npm i -g --force corepack && corepack enable | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - run: pnpm install | |
| - run: pnpm stub | |
| - run: pnpm lint | |
| ci: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - run: npm i -g --force corepack && corepack enable | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - uses: oven-sh/setup-bun@v2 | |
| if: ${{ matrix.os != 'windows-latest' }} | |
| with: | |
| bun-version: latest | |
| - uses: denoland/setup-deno@v1 | |
| if: ${{ matrix.os != 'windows-latest' }} | |
| with: | |
| deno-version: v2.x | |
| - run: pnpm install | |
| - run: pnpm test:types | |
| if: ${{ matrix.os != 'windows-latest' }} | |
| - run: pnpm build | |
| - run: pnpm vitest --coverage | |
| env: | |
| NODE_OPTIONS: --experimental-vm-modules --enable-source-maps | |
| # - uses: codecov/codecov-action@v3 | |
| - name: Release Nightly | |
| if: | | |
| github.event_name == 'push' && | |
| !contains(github.event.head_commit.message, '[skip-release]') && | |
| !startsWith(github.event.head_commit.message, 'chore') && | |
| !startsWith(github.event.head_commit.message, 'docs') | |
| run: ./scripts/release-nightly.sh | |
| env: | |
| NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}} |