55env :
66 NX_CLOUD_ENCRYPTION_KEY : ${{ secrets.NX_CLOUD_ENCRYPTION_KEY }}
77 NX_CLOUD_ACCESS_TOKEN : ${{ secrets.PR_NX_CLOUD_ACCESS_TOKEN }} # Read Only
8- NX_CLOUD_DISTRIBUTED_EXECUTION : true
98 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
109 CI : true
1110
@@ -16,48 +15,23 @@ concurrency:
1615
1716jobs :
1817 pr :
18+ if : ${{github.event.pull_request.head.repo.full_name == github.repository}}
1919 runs-on : ubuntu-latest
2020 timeout-minutes : 20
2121 permissions :
2222 pull-requests : write
2323 contents : write
24- id-token : write
2524 steps :
2625 - uses : actions/checkout@v4
2726 with :
2827 fetch-depth : 0
29- - uses : pnpm/action-setup@v4
30- with :
31- run_install : false
32- - uses : actions/setup-node@v5
33- id : cache
34- with :
35- node-version-file : ' .node-version'
36- cache : ' pnpm'
37-
38- - run : pnpm install --frozen-lockfile
28+ token : ${{ secrets.GH_TOKEN }}
3929
40- # This line enables distribution
41- # The "--stop-agents-after" is optional, but allows idle agents to shut down once the "e2e-ci" targets have been requested
42- - run : pnpm dlx nx-cloud start-ci-run --distribute-on=".nx/workflows/dynamic-changesets.yml" --stop-agents-after="e2e-ci" --with-env-vars="CODECOV_TOKEN"
43- - run : pnpm nx sync:check
44-
45- - name : Cache Playwright browsers
46- uses : actions/cache@v4
30+ - name : Setup Project
31+ uses : ./.github/actions/setup
4732 with :
48- path : ~/.cache/ms-playwright
49- key : ${{ runner.os }}-playwright-${{ hashFiles('**/pnpm-lock.yaml') }}
50- restore-keys : |
51- ${{ runner.os }}-playwright-
52-
53- - run : pnpm exec playwright install
33+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
5434
55- - uses : nrwl/nx-set-shas@v4
56- # This line is needed for nx affected to work when CI is running on a PR
57- - run : git branch --track main origin/main
58-
59- - run : pnpm exec nx-cloud record -- nx format:check
60- - run : pnpm exec nx affected -t build typecheck lint test e2e-ci
6135 - run : npx nx-cloud fix-ci
6236 if : always()
6337
6640 directory : ./packages/
6741 token : ${{ secrets.CODECOV_TOKEN }}
6842
69- - uses : actions/upload-artifact@v4
70- if : ${{ !cancelled() }}
71- with :
72- name : playwright-report
73- path : |
74- **/.playwright
75- **/test-results
76- retention-days : 30
77-
7843 - name : Ensure builds run
79- run : pnpm nx run-many -t build
80- env :
81- NX_CLOUD_DISTRIBUTED_EXECUTION : false
44+ run : pnpm nx run-many -t build --no-agents
8245
8346 - run : pnpm pkg-pr-new publish './packages/*' './packages/sdk-effects/*' --packageManager=pnpm
8447
0 commit comments