mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
ci: always perform fresh build in deployment job (#5066)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user