Skip to content

Commit 049e5b2

Browse files
committed
chore: pr-review
Add build and API docs steps to publish actions and workflows - Run builds and generate API docs before publishing in beta and release actions - Use --no-agents flag for Nx build steps in workflows - Remove NX_CLOUD_DISTRIBUTED_EXECUTION env and related config - Remove E2E report upload step from CI workflow - Minor improvements to setup action step names
1 parent 45be026 commit 049e5b2

File tree

6 files changed

+20
-21
lines changed

6 files changed

+20
-21
lines changed

.github/actions/publish-beta/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ runs:
88
shell: bash
99
run: pnpm pkg-pr-new publish './packages/*' './packages/sdk-effects/*' --packageManager=pnpm --comment=off
1010

11+
- name: Run Builds
12+
shell: bash
13+
run: pnpm nx run-many -t build --no-agents
14+
15+
- name: Generate API Docs
16+
shell: bash
17+
run: pnpm generate-docs
18+
1119
- name: Publish api docs [beta]
1220
uses: JamesIves/[email protected]
1321
with:

.github/actions/publish-release/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ runs:
3030
"publishedPackages": "${{ steps.slackify.outputs.message }}"
3131
}
3232
33+
- name: Run Builds
34+
shell: bash
35+
run: pnpm nx run-many -t build --no-agents
36+
37+
- name: Generate API Docs
38+
shell: bash
39+
run: pnpm generate-docs
40+
3341
- name: Publish api docs
3442
uses: JamesIves/[email protected]
3543
with:

.github/actions/setup/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ runs:
5656
run: pnpm exec playwright install
5757
shell: bash
5858

59-
- uses: nrwl/nx-set-shas@v4
59+
- name: Set Nx SHAs
60+
uses: nrwl/nx-set-shas@v4
6061

6162
- name: Check TS References are Synced
6263
shell: bash

.github/workflows/ci-fork.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ jobs:
5353
- run: git branch --track main origin/main || true
5454

5555
- run: pnpm nx format:check
56-
- run: pnpm nx affected -t build typecheck lint test e2e-ci
56+
- run: pnpm nx affected -t build typecheck lint test e2e-ci --no-agents

.github/workflows/ci.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
env:
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

@@ -22,7 +21,6 @@ jobs:
2221
permissions:
2322
pull-requests: write
2423
contents: write
25-
id-token: write
2624
steps:
2725
- uses: actions/checkout@v4
2826
with:
@@ -43,9 +41,7 @@ jobs:
4341
token: ${{ secrets.CODECOV_TOKEN }}
4442

4543
- name: Ensure builds run
46-
run: pnpm nx run-many -t build
47-
env:
48-
NX_CLOUD_DISTRIBUTED_EXECUTION: false
44+
run: pnpm nx run-many -t build --no-agents
4945

5046
- run: pnpm pkg-pr-new publish './packages/*' './packages/sdk-effects/*' --packageManager=pnpm
5147

@@ -138,14 +134,3 @@ jobs:
138134
139135
---
140136
<sub>🔄 Updated automatically on each push to this PR</sub>
141-
142-
- name: Upload E2E reports on failure
143-
if: failure()
144-
uses: actions/upload-artifact@v4
145-
with:
146-
name: e2e-reports
147-
path: |
148-
e2e/*-suites/playwright-report/**
149-
e2e/*-suites/test-results/**
150-
e2e/*-suites/.playwright/**
151-
retention-days: 7

.github/workflows/publish.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ on:
2828
env:
2929
NX_CLOUD_ENCRYPTION_KEY: ${{ secrets.NX_CLOUD_ENCRYPTION_KEY }}
3030
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
31-
NX_CLOUD_DISTRIBUTED_EXECUTION: true
3231
PNPM_CACHE_FOLDER: .pnpm-store
3332
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3433
CI: true
@@ -115,8 +114,6 @@ jobs:
115114
- name: Setup Project
116115
uses: ./.github/actions/setup
117116
with:
118-
node-version-file: '.node-version'
119-
pnpm-cache-folder: .pnpm-store
120117
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
121118

122119
- name: Version Packages as prerelease

0 commit comments

Comments
 (0)