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