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