Skip to content

Commit 833f4ad

Browse files
committed
ci: upload build artifact
1 parent b8f9657 commit 833f4ad

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ jobs:
4949
- name: Install and Build
5050
run: yarn install --immutable
5151

52+
test:
53+
needs: ['install']
54+
uses: './.github/workflows/test.yml'
55+
5256
build:
5357
needs: ['install']
5458
name: 'Build'
@@ -78,9 +82,11 @@ jobs:
7882
7983
- name: Build
8084
run: yarn build
81-
test:
82-
needs: ['build']
83-
uses: './.github/workflows/test.yml'
85+
86+
- uses: actions/upload-artifact@v4
87+
with:
88+
name: build-${{ matrix.react }}
89+
path: packages/*/dist
8490

8591
lint:
8692
needs: ['install']

.github/workflows/test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,11 @@ jobs:
4141
yarn add "@types/react@18" "@types/react-dom@18" --dev
4242
yarn add react@18 react-dom@18
4343
44-
- name: Build
45-
run: yarn build
44+
- uses: actions/download-artifact@v5
45+
with:
46+
name: build-${{ matrix.react }}
47+
- name: Display structure of downloaded files
48+
run: ls -R
4649

4750
- name: Cypress run
4851
uses: cypress-io/github-action@v6

0 commit comments

Comments
 (0)