allow changes

This commit is contained in:
David Sheldrick 2024-02-29 18:09:30 +00:00
parent a25d58e9b6
commit df205706e6
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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