Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

ci: disable electron workspace by default (#1713)

Himself657fb5b1f65b4c
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