Skip to content

Commit 80c2fdb

Browse files
committed
ci: improve workflow by spliting build and bundlesize
1 parent c7be67d commit 80c2fdb

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/bundlesize.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_call:
55

66
jobs:
7-
bundlesize:
7+
build:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v2
@@ -13,9 +13,19 @@ jobs:
1313
- name: Install dev dependencies
1414
run: yarn install
1515

16-
- name: Install dev dependencies
16+
- name: Build ReactTooltip component package
1717
run: yarn build
1818

19+
bundlesize:
20+
needs: build
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: actions/setup-node@v3
25+
26+
- name: Install dev dependencies
27+
run: yarn install
28+
1929
- name: Bundlesize
2030
run: yarn run bundlesize
2131

0 commit comments

Comments
 (0)