Repository navigation
chore(plugins): prepare @docubook/plugin-search-algolia 0.1.0 for npm - #478
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Set the version to 0.1.0 and drop private, so the package can be published. Its first release is published by hand, since npm trusted publishing cannot create a new package; later releases go through Changesets. The release-plan check now expects a flame major to republish the plugin as a patch, because the plugin's flame peer range is left.
077b9b5 to
a17127e
Compare
There was a problem hiding this comment.
Important
The diff itself is correct. @docubook/plugin-search-algolia is not on npm yet, though, and this PR is already marked ready. The PR's own merge order says to publish 0.1.0 by hand before merging, so don't merge until steps 3 and 4 are done.
Reviewed changes
I reviewed the single commit that prepares the Algolia plugin for its first npm release (standard mode). I re-ran the release-plan check and packed the tarball locally.
- Plugin manifest —
versiongoes to0.1.0andprivateis removed. Since the branch is now onmain(flame 2.5.0),pnpm packrewrites the peer range to@docubook/flame: ^2.5.0, as the PR intends. The plugin folder has noLICENSEfile, but pnpm copies the root one into the tarball. - Release-plan guard — in the core-major scenario the plugin is now expected to get a
patch.pnpm test:release-planpasses all 6 scenarios locally, and a flame patch still releases only flame. ARCHITECTURE.md— describes the plugin as versioned on its own through Changesets, outside the linked group.
Overall: ready to merge once the plugin is on npm. No code findings. The only priority is the merge order below.
⚠️ The PR is ready for review, but 0.1.0 is not on npm yet
During this review, npm view @docubook/plugin-search-algolia returned E404. On every push to main with no pending changesets, release.yml runs pnpm publish-packages (pnpm build && changeset publish). If this PR is merged now, that run will try to create the plugin package through OIDC trusted publishing. Trusted publishing cannot create a new package, so the run will fail. Also, ARCHITECTURE.md:36 says 0.1.0 "was published by hand", which isn't true yet.
Technical details
# Merge gated on manual first publish
## Affected sites
- plugins/search-algolia/package.json:3 — removing `private` makes `changeset publish` treat the plugin as publishable on the next `main` push
- .github/workflows/release.yml — `publish-script: pnpm publish-packages` uses OIDC with no npm token, so it cannot create a new package
- ARCHITECTURE.md:36 — "was published by hand" is only accurate after step 3 of the PR's merge order
## Required outcome
- `@docubook/[email protected]` exists on npm, published with `pnpm publish` from this branch so the peer range is `^2.5.0`, before this PR merges
- The npm trusted publisher (GitHub Actions, `DocuBook/docubook`, `release.yml`) is configured before merge, so later Changesets releases of the plugin succeed
## Suggested approach
- Follow steps 3–4 of the PR's merge order. Then confirm with `npm view @docubook/[email protected] version` before merging.
- Optionally, move the PR back to draft until the publish is done, as its description intends.claude-opus-5-5 | 𝕏
The package has been published to npm. @pullfrog |
There was a problem hiding this comment.
✅ No new issues found.
The merge gate from the previous review is cleared. @docubook/[email protected] is on npm, and the head commit (a17127e) is unchanged since that review.
What I checked on the registry
npm view @docubook/plugin-search-algoliashowslatest: 0.1.0, published 2026-11-06T02:15Z.- The packed manifest has
version: 0.1.0, noprivatefield, no leftoverworkspace:ranges, and the peer is@docubook/flame: ^2.5.0. That range matches flame2.5.0, which is the current version on npm. - The tarball has
LICENSE,README.md,package.json,dist/index.js(+.map),dist/index.d.ts,dist/options.d.tsanddist/client/(client.js,style.css, two chunks).
Once this merges, changeset publish will find 0.1.0 already on npm and skip it, so the release run won't try to create the package through OIDC. That also makes the "published by hand" wording in ARCHITECTURE.md accurate now.
Two things the registry doesn't show
- Trusted publisher (step 4): I can't check this from public registry data. If it isn't configured, nothing breaks at merge. The first Changesets release of the plugin would fail instead.
0.0.0-stageplaceholder: the registry also lists a0.0.0-stageversion ("Temporary package placeholder for staged publishing"), created about a minute before 0.1.0.latestpoints to 0.1.0, so installs aren't affected. If you'd rather hide it, runnpm deprecate @docubook/[email protected] "placeholder".
claude-opus-5-5 | 𝕏

Summary
Prepares
@docubook/plugin-search-algoliafor its first npm release.plugins/search-algolia/package.json:versiongoes from0.0.0to0.1.0, andprivateis removed.ARCHITECTURE.md: the plugin is now described as versioned on its own through Changesets, outside the linked release group. The note explains why its first release is published by hand.scripts/check-release-plan.mjs: in the "core major" scenario, the plugin's flame peer range is left as well. The expected plan now includes@docubook/plugin-search-algolia: patch, so a flame major republishes the plugin with the new range. A flame minor or patch still leaves the plugin out of the plan.Merge order (draft until the plugin is on npm)
npm trusted publishing cannot create a new package. The release workflow also runs
changeset publishon every push tomainthat has no pending changesets. If this PR were merged before 0.1.0 is on npm, that run would try to publish the plugin through OIDC and fail.Merge chore: v2.5.0 - Let a plugin replace the search dialog, and show Ask AI buttons for providers that… #477, so flame 2.5.0 is published.Done: flame 2.5.0 is on npm.Rebase this branch ontoDone: the branch sits onmain, so the workspace has flame 2.5.0.7b5ca9a(v2.5.0).cd plugins/search-algolia && npm login && pnpm publish --access public. Use pnpm soworkspace:^is rewritten.prepublishOnlyruns the tests and the build.DocuBook/docubook,release.yml.changeset publishthen finds 0.1.0 on npm and skips it.Verification
pnpm packproducesdocubook-plugin-search-algolia-0.1.0.tgz. It containsdist/index.js,dist/index.d.ts,dist/options.d.ts,dist/client/(client.js,style.css,chunks/),README.md,LICENSEandpackage.json, with no runtime dependencies."@docubook/flame": "^2.5.0"as its peer range, with noprivatefield.scripts/check-release-plan.mjspasses all 6 scenarios.