in src/fileManager.ts [166:174]
export async function publishFile(fileId: string, config: Config, auth: JWT): Promise<unknown> {
const guFile = await getGuFile(fileId)
if (notEmpty(guFile)) {
const updatedJson = await updateFiles([guFile], true, config, auth)
return await saveGuFiles(updatedJson);
} else {
throw `File ${fileId} not found in cache`
}
}