Skip to content

Commit 45b73b8

Browse files
committed
only build in CI once and then copy the build artifacts
1 parent e6a5cfa commit 45b73b8

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/checks.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ jobs:
3333
run: yarn --frozen-lockfile --ignore-engines
3434
if: steps.dependency-cache.outputs.cache-hit != 'true'
3535
- run: yarn build
36+
- name: Upload build artifacts
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: dist-artifacts-${{ github.run_id }}
40+
path: packages/*/dist
41+
retention-days: 1
3642

3743
type-check:
3844
needs: build
@@ -154,6 +160,11 @@ jobs:
154160
- name: Install dependencies
155161
run: yarn --frozen-lockfile --ignore-engines
156162
if: steps.dependency-cache.outputs.cache-hit != 'true'
163+
- name: Download build artifacts
164+
uses: actions/download-artifact@v4
165+
with:
166+
name: dist-artifacts-${{ github.run_id }}
167+
path: packages
157168
- run: yarn test:integration
158169

159170
test-e2e:
@@ -187,6 +198,11 @@ jobs:
187198
- name: Install dependencies
188199
run: yarn --frozen-lockfile --ignore-engines
189200
if: steps.dependency-cache.outputs.cache-hit != 'true'
201+
- name: Download build artifacts
202+
uses: actions/download-artifact@v4
203+
with:
204+
name: dist-artifacts-${{ github.run_id }}
205+
path: packages
190206
- run: yarn test:e2e
191207

192208
lint:

nx.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
},
2626
"test": {
2727
"inputs": ["sharedGlobals"],
28-
"dependsOn": ["^build"],
2928
"outputs": []
3029
},
3130
"check:types": {

0 commit comments

Comments
 (0)