From 4f52c2a6db63ddea85f1227e30c7735084d79c8c Mon Sep 17 00:00:00 2001 From: Sahil Yeole <73148455+beelchester@users.noreply.github.com> Date: Sun, 28 Jul 2024 11:58:00 +0530 Subject: [PATCH] fix: dev.to auto publish (#401) Signed-off-by: Sahil Yeole --- publish-externals/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/publish-externals/src/index.ts b/publish-externals/src/index.ts index 0e558990d0..1038fcd8df 100644 --- a/publish-externals/src/index.ts +++ b/publish-externals/src/index.ts @@ -45,7 +45,7 @@ const main = async () => { file = `blog/${file}` const {frontMatter} = extractFrontMatterAndContent(path.join(__dirname, "../../", file)) const slug = frontMatter.slug - if (!blogs[slug]) { + if (!blogs[slug] || !blogs[slug].platforms[publication.name]) { console.log("Publishing new blog", slug) toPublish++ hasPublishFlag && (await publish(file, blogs, publication))