{
  "id": 23915622,
  "title": "Automating Multi‑Platform Content Publishing with JSON Manifests in a Date‑Based Repo",
  "url": "https://urgent.news/2026/12/06/automating-multi-platform-content-publishing-with-json-manifests-in-a",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-12-06T22:09:33.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/zaerohell/automating-multi-platform-content-publishing-with-json-manifests-in-a-date-based-repo-4gb2"
  },
  "original_language": null,
  "account": "The article discusses automating multi-platform content publishing using JSON manifests within a date-based repository. The problem was that manual copying and toggling of JSON files and metadata flags was required for publishing, leading to issues like the bluesky_published flag remaining false post-publishing, which caused CI checks to flag the post as not live. The author implemented a Node.js CLI script (scripts/publish.js) that recursively scans the content tree for directories with metadata.json files. For each such directory, it checks for a corresponding Bluesky JSON payload. If the payload exists and bluesky_published is false, the script:\n\n1. Calls the Bluesky API with the payload (with a stubbed API function for now)\n2. Updates metadata.json to mark bluesky_published as true and records the returned URI under bluesky_uris\n3. Writes a log entry to stdout\n4. Handles cases where no Bluesky payload is found, logging a skip message\n\nThe implementation includes validation checks to avoid marking posts as published when the required payload is missing. The script can be run with `node scripts/publish.js` and handles both English and Spanish Bluesky payloads. The change eliminates the need for manual edits and ensures the repo accurately reflects the publishing state.",
  "summary": "Automating Multi‑Platform Content Publishing with JSON Manifests in a Date‑Based Repo TL;DR: I added a small Node CLI that walks the content/ tree, generates platform‑specific JSON payloads (Bluesky in this case) and flips the bluesky_published flag in each metadata.json . The change lets us push daily posts without manual file edits, and the repo now reflects the true publishing state. The…",
  "summary_source": "publisher",
  "key_points": [
    "Node.js CLI script automates publishing process",
    "Recursively scans content tree for metadata.json",
    "Marks posts as published via Bluesky API"
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "outlets_capped": false,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}