Open History to see the last commit
1name: PR
2
3on:
4 pull_request:
5 paths-ignore:
6 - 'docs/**'
7 - 'media/**'
8 - '**/*.md'
9
10concurrency:
11 group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
12 cancel-in-progress: true
13
14env:
15 NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
16
17permissions:
18 contents: read
19
20jobs:
21 test:
22 name: Test
23 runs-on: ubuntu-latest
24 steps:
25 - name: Checkout
26 uses: actions/checkout@v6.0.1
27 with:
28 fetch-depth: 0
29 - name: Setup Tools
30 uses: tanstack/config/.github/setup@main
31 - name: Get base and head commits for `nx affected`
32 uses: nrwl/nx-set-shas@v4.4.0
33 with:
34 main-branch-name: main
35 - name: Run Checks
36 run: pnpm run test:pr
37 preview:
38 name: Preview
39 runs-on: ubuntu-latest
40 steps:
41 - name: Checkout
42 uses: actions/checkout@v6.0.1
43 with:
44 fetch-depth: 0
45 - name: Setup Tools
46 uses: tanstack/config/.github/setup@main
47 - name: Build Packages
48 run: pnpm run build:all
49 - name: Publish Previews
50 run: pnpx pkg-pr-new publish --pnpm './packages/typescript/*'
51 provenance:
52 name: Provenance
53 runs-on: ubuntu-latest
54 steps:
55 - name: Checkout
56 uses: actions/checkout@v6.0.1
57 with:
58 fetch-depth: 0
59 - name: Check Provenance
60 uses: danielroe/provenance-action@v0.1.1
61 with:
62 fail-on-downgrade: true