mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
ci: disable electron workspace by default (#1713)
This commit is contained in:
8
.github/actions/setup-node/action.yml
vendored
8
.github/actions/setup-node/action.yml
vendored
@@ -9,6 +9,10 @@ inputs:
|
|||||||
description: 'Run the install step.'
|
description: 'Run the install step.'
|
||||||
required: false
|
required: false
|
||||||
default: 'true'
|
default: 'true'
|
||||||
|
electron-workspace-install:
|
||||||
|
description: 'Run the install step for the electron workspace.'
|
||||||
|
required: false
|
||||||
|
default: 'false'
|
||||||
npm-token:
|
npm-token:
|
||||||
description: 'The NPM token to use for private packages.'
|
description: 'The NPM token to use for private packages.'
|
||||||
required: false
|
required: false
|
||||||
@@ -73,14 +77,14 @@ runs:
|
|||||||
HUSKY: '0'
|
HUSKY: '0'
|
||||||
|
|
||||||
- name: yarn install (electron)
|
- name: yarn install (electron)
|
||||||
if: ${{ inputs.package-install == 'true' }}
|
if: ${{ inputs.electron-workspace-install == 'true' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: yarn install ${{ inputs.extra-flags }}
|
run: yarn install ${{ inputs.extra-flags }}
|
||||||
working-directory: apps/electron
|
working-directory: apps/electron
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ inputs.npm-token }}
|
NODE_AUTH_TOKEN: ${{ inputs.npm-token }}
|
||||||
YARN_ENABLE_GLOBAL_CACHE: 'false'
|
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'
|
HUSKY: '0'
|
||||||
|
|
||||||
- name: Get installed Playwright version
|
- name: Get installed Playwright version
|
||||||
|
|||||||
2
.github/workflows/client-app.yml
vendored
2
.github/workflows/client-app.yml
vendored
@@ -36,6 +36,8 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: ./.github/actions/setup-node
|
uses: ./.github/actions/setup-node
|
||||||
|
with:
|
||||||
|
electron-workspace-install: true
|
||||||
|
|
||||||
- name: before-make
|
- name: before-make
|
||||||
working-directory: apps/electron
|
working-directory: apps/electron
|
||||||
|
|||||||
Reference in New Issue
Block a user