microsoft/typespec
Publicmirrored from https://github.com/microsoft/typespecAvailable
.github/workflows/ci.yml
37lines · modecode
| 1 | name: CI |
| 2 | |
| 3 | on: |
| 4 | pull_request: |
| 5 | branches: |
| 6 | - main |
| 7 | - release/* |
| 8 | paths-ignore: |
| 9 | - "packages/http-client-csharp/**" |
| 10 | - "packages/http-client-java/**" |
| 11 | - "packages/http-client-python/**" |
| 12 | - "website/**" |
| 13 | concurrency: |
| 14 | group: ${{ github.workflow }}-${{ github.ref }} |
| 15 | cancel-in-progress: true |
| 16 | |
| 17 | jobs: |
| 18 | preview: |
| 19 | runs-on: ubuntu-latest |
| 20 | |
| 21 | steps: |
| 22 | - uses: actions/checkout@v4 |
| 23 | with: |
| 24 | fetch-depth: 0 ## Needed for Changesets to find `main` branch |
| 25 | |
| 26 | - uses: ./.github/actions/setup |
| 27 | |
| 28 | - name: Install dependencies |
| 29 | run: pnpm install |
| 30 | |
| 31 | - name: Build |
| 32 | run: pnpm run --filter "internal-build-utils" --filter "[origin/main]..." --filter='!@typespec/website' build |
| 33 | |
| 34 | - name: Bump version to prerelease targets |
| 35 | run: node ./packages/internal-build-utils/cmd/cli.js bump-version-pr . --pr ${{ github.event.pull_request.number }} --buildNumber ${{ github.run_number }} |
| 36 | |
| 37 | - run: pnpm tsx eng/tsp-core/pkg-pr-new.ts |
| 38 | |