Skip to content

Commit

Permalink
fix: dev.to auto publish (#401)
Browse files Browse the repository at this point in the history
Signed-off-by: Sahil Yeole <[email protected]>
  • Loading branch information
beelchester authored Jul 28, 2024
1 parent ede5178 commit 4f52c2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion publish-externals/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 4f52c2a

Please sign in to comment.