fix(types): only strip extensions that ts retries #10314
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] } | |
| pull_request: { branches: [v2] } | |
| jobs: | |
| tests: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: npm i -g --force corepack && corepack enable | |
| - uses: actions/setup-node@v6 | |
| with: { node-version: lts/*, 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 stub && pnpm lint | |
| if: ${{ matrix.os != 'windows-latest' }} | |
| - run: pnpm test:types | |
| if: ${{ matrix.os != 'windows-latest' }} | |
| - run: pnpm build | |
| - run: pnpm vitest --coverage | |
| # - uses: codecov/codecov-action@v3 | |
| - run: pnpm dlx pkg-pr-new publish | |
| if: ${{ matrix.os == 'ubuntu-latest' }} | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: { id-token: write, contents: read } | |
| needs: tests | |
| if: contains('refs/heads/v2', github.ref) && github.event_name == 'push' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: { fetch-depth: 0 } | |
| - run: npm i -fg corepack && corepack enable | |
| - uses: actions/setup-node@v6 | |
| with: { node-version: lts/*, cache: "pnpm" } | |
| - run: pnpm install | |
| - run: pnpm changelogen --bump --canary nightly | |
| - run: npm i -g npm@latest && npm publish --tag latest |