From 13e07add2ee3eb204b5db75e4c7b39f27a74a61c Mon Sep 17 00:00:00 2001 From: ahmedhanafy725 Date: Tue, 18 Apr 2023 17:23:51 +0200 Subject: [PATCH] Build only the clients in workflows in case the rest project are not needed --- .github/workflows/grid_client_nightly.yml | 2 +- .github/workflows/grid_client_tests.yml | 2 +- .github/workflows/publish.yml | 2 +- .github/workflows/weblets_build.yaml | 2 +- .github/workflows/weblets_cd.yml | 2 +- .github/workflows/weblets_cypress.yaml | 2 +- docs/workflows.md | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/grid_client_nightly.yml b/.github/workflows/grid_client_nightly.yml index 7cbd4d201a..6a7a511759 100644 --- a/.github/workflows/grid_client_nightly.yml +++ b/.github/workflows/grid_client_nightly.yml @@ -49,7 +49,7 @@ jobs: - name: Install run: | yarn - lerna run build + lerna run build --no-private - name: Run test dynamic single vm id: dynamicsinglevm continue-on-error: true diff --git a/.github/workflows/grid_client_tests.yml b/.github/workflows/grid_client_tests.yml index a4b8c9017a..19d7b7ba4d 100644 --- a/.github/workflows/grid_client_tests.yml +++ b/.github/workflows/grid_client_tests.yml @@ -43,7 +43,7 @@ jobs: - name: Install run: | yarn - lerna run build + lerna run build --no-private - name: Run tests run: yarn workspace @threefold/grid_client test --runInBand --ci --coverage --colors - name: Cleanup diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index cd07bba74c..bfbac1cae0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,7 +28,7 @@ jobs: - name: Install run: yarn - name: Build - run: lerna run build + run: lerna run build --no-private - name: Publish run: | yarn workspace @threefold/rmb_direct_client publish diff --git a/.github/workflows/weblets_build.yaml b/.github/workflows/weblets_build.yaml index ec94f78472..3a508437d6 100644 --- a/.github/workflows/weblets_build.yaml +++ b/.github/workflows/weblets_build.yaml @@ -45,6 +45,6 @@ jobs: - name: Build run: | - lerna run build + lerna run build --no-private cd packages/weblets yarn build:app diff --git a/.github/workflows/weblets_cd.yml b/.github/workflows/weblets_cd.yml index bba7d33ea9..0cf9bc40fa 100644 --- a/.github/workflows/weblets_cd.yml +++ b/.github/workflows/weblets_cd.yml @@ -47,7 +47,7 @@ jobs: - name: Build in case development run: | - lerna run build + lerna run build --no-private cd packages/weblets VERSION=$GITHUB_SHA VERSION=${VERSION:0:7} NETWORK=dev yarn build:app diff --git a/.github/workflows/weblets_cypress.yaml b/.github/workflows/weblets_cypress.yaml index fb5a203c6d..54dcc4f8d2 100644 --- a/.github/workflows/weblets_cypress.yaml +++ b/.github/workflows/weblets_cypress.yaml @@ -24,7 +24,7 @@ jobs: - name: Yarn deps run: | yarn - lerna run build + lerna run build --no-private cd packages/weblets yarn deps - name: Generate SSH Key diff --git a/docs/workflows.md b/docs/workflows.md index 8cbad9cd7e..612fe79675 100644 --- a/docs/workflows.md +++ b/docs/workflows.md @@ -10,7 +10,7 @@ On **Pull Request**, and **Push** to development branch: It will do a clean inst ### [Publish](/.github/workflows/publish.yml) -On **Release**: It will do a clean install of node dependencies, cache/restore them to make the process faster, and build the source code using `lerna run build` then publish the latest version to npm. Also it build a docker image for grid client from the released version. +On **Release**: It will do a clean install of node dependencies, cache/restore them to make the process faster, and build the source code using `lerna run build --no-private` then publish the latest version to npm. Also it build a docker image for grid client from the released version. ### [Lint](/.github/workflows/lint.yml)