From 7fb5b1f65b4ca248f8931fb2e70c2010fe914872 Mon Sep 17 00:00:00 2001 From: Himself65 Date: Mon, 27 Mar 2023 23:02:57 -0500 Subject: [PATCH] ci: disable electron workspace by default (#1713) --- .github/actions/setup-node/action.yml | 8 ++++++-- .github/workflows/client-app.yml | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/actions/setup-node/action.yml b/.github/actions/setup-node/action.yml index c61948be38..482e6d466f 100644 --- a/.github/actions/setup-node/action.yml +++ b/.github/actions/setup-node/action.yml @@ -9,6 +9,10 @@ inputs: description: 'Run the install step.' required: false default: 'true' + electron-workspace-install: + description: 'Run the install step for the electron workspace.' + required: false + default: 'false' npm-token: description: 'The NPM token to use for private packages.' required: false @@ -73,14 +77,14 @@ runs: HUSKY: '0' - name: yarn install (electron) - if: ${{ inputs.package-install == 'true' }} + if: ${{ inputs.electron-workspace-install == 'true' }} shell: bash run: yarn install ${{ inputs.extra-flags }} working-directory: apps/electron env: NODE_AUTH_TOKEN: ${{ inputs.npm-token }} YARN_ENABLE_GLOBAL_CACHE: 'false' - YARN_INSTALL_STATE_PATH: .yarn/ci-cache/install-state.gz + YARN_INSTALL_STATE_PATH: ../../.yarn/ci-cache/install-state.gz HUSKY: '0' - name: Get installed Playwright version diff --git a/.github/workflows/client-app.yml b/.github/workflows/client-app.yml index b3cfe98332..f07b5260fd 100644 --- a/.github/workflows/client-app.yml +++ b/.github/workflows/client-app.yml @@ -36,6 +36,8 @@ jobs: - uses: actions/checkout@v3 - name: Setup Node.js uses: ./.github/actions/setup-node + with: + electron-workspace-install: true - name: before-make working-directory: apps/electron