Skip to content

Removed activitypub npm publish & version-bump workflow - #28894

Merged
sagzy merged 1 commit into
mainfrom
cleanup/activitypub-npm-publish-workflow
Jun 25, 2026
Merged

sagzy merged 1 commit into
mainfrom
cleanup/activitypub-npm-publish-workflow

Conversation

@sagzy

@sagzy sagzy commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

closes https://linear.app/ghost/issue/GVA-813/

apps/activitypub used to be shipped to npm (and served via jsDelivr) by bumping its package.json version. That workflow is no longer valid — activitypub is now bundled into the Ghost Admin React bundle from source. apps/admin imports it as a workspace dependency via @tryghost/activitypub/api (→ src/index.tsx), so it never consumes the dist/ UMD library or the CDN.

This removes the now-dead publish-and-version-bump machinery.

Changes

  • .github/workflows/ci.yml — removed the @tryghost/activitypub entry from the publish_public_apps matrix, plus the activitypub-only "Wait before purging jsDelivr cache" step. The other six public apps (portal, sodo-search, comments-ui, signup-form, announcement-bar, admin-toolbar) are genuinely CDN-distributed and keep publishing as before.
  • .github/hooks/pre-commit.bash — removed section 3, the interactive "ship a new version of @tryghost/activitypub?" prompt that auto-bumped apps/activitypub/package.json on commit.

Verification

  • ci.yml re-parses as valid YAML; the publish matrix now lists exactly the six remaining public apps.
  • No remaining references to increment_version, AP_BUMP, or activitypub in the pre-commit hook; the shared color vars it used are still referenced by the secrets/submodule sections.
  • check-app-version-bump.js already excludes activitypub (no change needed), and Ghost core reads no activitypub version at runtime (no defaults.json entry / CDN URL construction).

no ref

- apps/activitypub is now bundled into the Ghost Admin React bundle from
  source (apps/admin imports `@tryghost/activitypub/api`), so it is no
  longer distributed via npm/jsDelivr. The publish-and-bump machinery is
  now dead code with no other consumers.
- Removed the `@tryghost/activitypub` entry from the `publish_public_apps`
  matrix in ci.yml, plus the activitypub-only jsDelivr cache wait step.
- Removed the pre-commit hook section that prompted to "ship a new
  version" and auto-bumped apps/activitypub/package.json.

Tier 1 of the cleanup. Vestigial package.json publish metadata
(private/files/main/module/exports["."]) and the library `dist` build
are intentionally left for a follow-up review.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@coderabbitai

coderabbitai Bot commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

The pre-commit hook’s section boundary after the submodule check was adjusted. In CI, the publish_public_apps job no longer includes the activitypub package in its matrix, and its package-specific wait before jsDelivr cache purging was removed.

Possibly related PRs

  • TryGhost/Ghost#28850: Related changes to the publish_public_apps pipeline and activitypub matrix handling.
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: removing the activitypub npm publish and version-bump workflow.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description check ✅ Passed The description matches the changeset by explaining the removal of activitypub publishing and version-bump workflow.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cleanup/activitypub-npm-publish-workflow

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nx-cloud

nx-cloud Bot commented Jun 25, 2026 •

Copy link
Copy Markdown

🤖 Nx Cloud AI Fix

Ensure the fix-ci command is configured to always run in your CI pipeline to get automatic fixes in future runs. For more information, please see https://nx.dev/ci/features/self-healing-ci


View your CI Pipeline Execution ↗ for commit 2919db5

Command Status Duration Result
nx run @tryghost/admin-x-settings:test:acceptance ✅ Succeeded 10m 21s View ↗
nx run ghost:test:ci:integration ✅ Succeeded 3s View ↗
nx run ghost:test:integration ✅ Succeeded 2m 37s View ↗
nx run ghost:test:legacy ✅ Succeeded 2m 36s View ↗
nx run ghost:test:e2e ✅ Succeeded 2m 15s View ↗
nx run-many --target=build --projects=tag:publi... ✅ Succeeded 1s View ↗
nx run @tryghost/comments-ui:test:acceptance ✅ Succeeded 45s View ↗
nx run @tryghost/admin:build ✅ Succeeded 9s View ↗
Additional runs (7) ✅ Succeeded ... View ↗

💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-06-25 08:40:00 UTC

@codecov

codecov Bot commented Jun 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.26%. Comparing base (b350f89) to head (2919db5).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #28894      +/-   ##
==========================================
- Coverage   74.28%   74.26%   -0.03%     
==========================================
  Files        1565     1565              
  Lines      135098   135098              
  Branches    16413    16408       -5     
==========================================
- Hits       100363   100324      -39     
- Misses      33751    33760       +9     
- Partials      984     1014      +30     
Flag Coverage Δ
e2e-tests 76.40% <ø> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sagzy
sagzy merged commit 54a71a4 into main Jun 25, 2026
49 checks passed
@sagzy
sagzy deleted the cleanup/activitypub-npm-publish-workflow branch June 25, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants