From 42d1ed4521ab20fed537f2df0738f3ed22fb76dc Mon Sep 17 00:00:00 2001 From: Wentao Kuang Date: Fri, 15 Nov 2024 11:10:31 +1300 Subject: [PATCH 1/3] Bundle the the bin file before publish npm --- .github/workflows/push.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 134f45a6e..4abcd891d 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -41,6 +41,10 @@ jobs: - name: Check Dependencies run: node scripts/detect.unlinked.dep.mjs + - name: Bunlde + run: | + npx lerna run bundle --stream + - name: (Prod) Create tag if: github.ref == 'refs/heads/master' && startsWith(github.event.head_commit.message, 'release:') run: | From ff8105efc3f93e239e1f38868f7486064400c79a Mon Sep 17 00:00:00 2001 From: Wentao Kuang Date: Fri, 15 Nov 2024 11:16:21 +1300 Subject: [PATCH 2/3] Bundle before store artifacts --- .github/workflows/push.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 4abcd891d..ef8959221 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -23,6 +23,10 @@ jobs: steps: - uses: linz/action-typescript@v3 + - name: Bunlde + run: | + npx lerna run bundle --stream + # TODO: running a giant copy command to import CSS and SVG files into the docs file in not super ideal - name: Build docs run: | @@ -41,10 +45,6 @@ jobs: - name: Check Dependencies run: node scripts/detect.unlinked.dep.mjs - - name: Bunlde - run: | - npx lerna run bundle --stream - - name: (Prod) Create tag if: github.ref == 'refs/heads/master' && startsWith(github.event.head_commit.message, 'release:') run: | From aa2ebba1586eee0e380b932e93ca372b65fd37c9 Mon Sep 17 00:00:00 2001 From: Wentao Kuang Date: Thu, 21 Nov 2024 12:06:33 +1300 Subject: [PATCH 3/3] Update push.yml Co-authored-by: Tawera Manaena --- .github/workflows/push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index ef8959221..ae9228ff3 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -23,7 +23,7 @@ jobs: steps: - uses: linz/action-typescript@v3 - - name: Bunlde + - name: Bundle run: | npx lerna run bundle --stream