ci: avoid twice by nx (#8279)

This commit is contained in:
forehalo
2024-09-18 05:09:42 +00:00
parent ccd630a2b0
commit e7ac43f0f7
7 changed files with 11 additions and 14 deletions
@@ -47,12 +47,9 @@ process.env.DISTRIBUTION = 'desktop';
const cwd = repoRootDir;
const { SKIP_NX_CACHE } = process.env;
const nxFlag = SKIP_NX_CACHE ? '--skip-nx-cache' : '';
// step 1: build web dist
if (!process.env.SKIP_WEB_BUILD) {
spawnSync('yarn', ['nx', 'build', '@affine/web', nxFlag], {
spawnSync('yarn', ['build'], {
stdio: 'inherit',
env: process.env,
cwd,