Skip to content

Commit 02a7fc4

Browse files
authored
fix: should be able to do mdx sync on staging as well (#60)
* chore: update pnpm lockfile * chore: revert test changes * fix: add packages field to cms pnpm-workspace.yaml * test: workflow changes * fix: allow sync-mdx to run from staging branch * test: trigger sync-mdx job
1 parent 310bb92 commit 02a7fc4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

cms/scripts/sync-mdx/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ async function main() {
2929
cwd: projectRoot
3030
})
3131
const currentBranch = branch.stdout?.trim()
32-
if (currentBranch !== 'main') {
32+
const allowedBranches = ['main', 'staging']
33+
if (!allowedBranches.includes(currentBranch || '')) {
3334
console.error(
34-
'❌ Error: sync-mdx can only run on the main branch (use --dry-run to preview)'
35+
`❌ Error: sync-mdx can only run on ${allowedBranches.join(' or ')} branch (use --dry-run to preview)`
3536
)
3637
console.error(` Current branch: ${currentBranch || '(unknown)'}`)
3738
process.exit(1)

src/content/blog/2026-01-29-interledger-foundation-awards-200000-social-web-foundation-support-decentralized-social-media.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ tags:
1313
- Announcements
1414
---
1515

16-
For creators, publishers, and community-run platforms, building a sustainable future on the web has become increasingly difficult. Advertising revenues continue to decline, audiences are experiencing subscription fatigue, and smaller publishers are often left choosing between paywalls, platform dependence, or simply giving content away for free.
16+
For creators, publishers, and community-run platforms, building a sustainable future on the web has become increasingly difficult. Advertising revenues continue to decline, audiences are experiencing subscription fatigue, and smaller publishers are often left choosing between paywalls, platform dependence, or just giving content away for free.
1717

1818
At the same time, decentralized and community-run social platforms are gaining momentum. These platforms offer greater control over distribution and audience relationships, but they often lack viable monetization tools.
1919

0 commit comments

Comments
 (0)