From df205706e69d32e97fc4f3d199ee27ab1daa9a71 Mon Sep 17 00:00:00 2001 From: David Sheldrick Date: Thu, 29 Feb 2024 18:09:30 +0000 Subject: [PATCH] allow changes --- scripts/lib/file.ts | 2 +- scripts/lib/publishing.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/lib/file.ts b/scripts/lib/file.ts index 75803bb89..5b1df9b45 100644 --- a/scripts/lib/file.ts +++ b/scripts/lib/file.ts @@ -62,7 +62,7 @@ export async function writeStringFile(filePath: string, contents: string) { } export async function writeFile(filePath: string, contents: Buffer) { - if (process.env.CI) { + if (process.env.CI && !process.env.ALLOW_REFRESH_ASSETS_CHANGES) { let existingContents: Buffer | null = null try { existingContents = await readFile(filePath) diff --git a/scripts/lib/publishing.ts b/scripts/lib/publishing.ts index 6f84325a6..d0f4027a1 100644 --- a/scripts/lib/publishing.ts +++ b/scripts/lib/publishing.ts @@ -57,7 +57,7 @@ export async function setAllVersions(version: string) { ) } - await exec('yarn', ['refresh-assets', '--force']) + await exec('yarn', ['refresh-assets', '--force'], { env: { ALLOW_REFRESH_ASSETS_CHANGES: '1' } }) const lernaJson = JSON.parse(readFileSync('lerna.json', 'utf8')) lernaJson.version = version