@@ -43,41 +43,17 @@ jobs:
4343 id-token : write # OIDC for provenance if npm publish happens here
4444 runs-on : ubuntu-latest
4545 steps :
46- - uses : actions/checkout@v4
46+ - name : Setup Project
47+ uses : ./.github/actions/setup
4748 with :
4849 fetch-depth : 0
4950 token : ${{ secrets.GH_TOKEN }}
50- - uses : pnpm/action-setup@v4
51- with :
52- run_install : false
51+
5352 - uses : actions/setup-node@v5
5453 id : cache
5554 with :
5655 node-version-file : ' .node-version'
57- cache : ' pnpm'
58- registry-url : ' https://registry.npmjs.org'
59-
60- - name : Update npm
61- run : npm install -g npm@latest
62-
63- - run : pnpm install --frozen-lockfile
64-
65- - 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"
66-
67- - name : Cache Playwright browsers
68- uses : actions/cache@v4
69- with :
70- path : ~/.cache/ms-playwright
71- key : ${{ runner.os }}-playwright-${{ hashFiles('**/pnpm-lock.yaml') }}
72- restore-keys : |
73- ${{ runner.os }}-playwright-
74-
75- - run : pnpm exec playwright install
76-
77- - uses : nrwl/nx-set-shas@v4
78-
79- - name : setup pnpm config
80- run : pnpm config set store-dir $PNPM_CACHE_FOLDER
56+ pnpm-cache-folder : .pnpm-store
8157
8258 - run : pnpm exec nx affected -t build lint test e2e-ci
8359
@@ -107,39 +83,20 @@ jobs:
10783 - run : pnpm pkg-pr-new publish './packages/*' './packages/sdk-effects/*' --packageManager=pnpm --comment=off
10884 if : steps.changesets.outputs.published == 'false'
10985
110- - name : Send GitHub Action data to a Slack workflow
86+ - name : Publish Release Steps
11187 if : steps.changesets.outputs.published == 'true'
112- uses : slackapi/slack- github-action@v2.1.1
88+ uses : ./. github/actions/publish-release
11389 with :
114- payload-delimiter : ' _'
115- webhook : ${{ secrets.SLACK_WEBHOOK_URL }}
116- webhook-type : webhook-trigger
117- payload : $ {{ steps.changesets.outputs.publishedPackages }}
90+ publishedPackages : ${{ steps.changesets.outputs.publishedPackages }}
91+ slackWebhook : ${{ secrets.SLACK_WEBHOOK_URL }}
11892
119- - uses : codecov/codecov-action@v5
120- with :
121- files : ./packages/**/coverage/*.xml
122- token : ${{ secrets.CODECOV_TOKEN }}
123-
124- - name : Ensure builds run
125- run : pnpm nx run-many -t build
126- env :
127- NX_CLOUD_DISTRIBUTED_EXECUTION : false
128-
129- - name : Build docs
130- run : pnpm generate-docs
131-
132- - name : Publish api docs
133- if : steps.changesets.outputs.published == 'true'
134- uses : JamesIves/github-pages-deploy-action@v4.7.3
93+ - name : Publish Beta Steps
94+ if : steps.changesets.outputs.published == 'false'
95+ uses : ./.github/actions/publish-beta
13596 with :
136- folder : docs
137- commit-message : ' chore: release-api-docs'
97+ branch : main
13898
139- - name : Publish api docs [beta]
140- if : steps.changesets.outputs.published == 'false'
141- id : latest-deploy
142- uses : JamesIves/github-pages-deploy-action@v4.7.3
99+ - uses : JamesIves/github-pages-deploy-action@v4.7.3
143100 with :
144101 folder : docs
145102 commit-message : ' chore: release-api-docs-beta'
0 commit comments