ci: always perform fresh build in deployment job (#5066)

This commit is contained in:
LongYinan
2023-11-28 06:59:50 +00:00
parent aaaed5ac14
commit 0ee2ecc1e9
4 changed files with 9 additions and 4 deletions

View File

@@ -39,6 +39,9 @@ process.env.DISTRIBUTION = 'desktop';
const cwd = repoRootDir;
const { SKIP_NX_CACHE } = process.env;
const nxFlag = SKIP_NX_CACHE ? '--skip-nx-cache' : '';
if (!process.env.SKIP_PLUGIN_BUILD) {
spawnSync('yarn', ['build:plugins'], {
stdio: 'inherit',
@@ -49,7 +52,7 @@ if (!process.env.SKIP_PLUGIN_BUILD) {
// step 1: build web dist
if (!process.env.SKIP_WEB_BUILD) {
spawnSync('yarn', ['nx', 'build', '@affine/core'], {
spawnSync('yarn', ['nx', 'build', '@affine/core', nxFlag], {
stdio: 'inherit',
env: process.env,
cwd,