Skip to content

chore(plugins): prepare @docubook/plugin-search-algolia 0.1.0 for npm - #478

Merged
gitfromwildan merged 1 commit into
mainfrom
chore/release-plugin-search-algolia-0.1.0
Nov 6, 2026
Merged

gitfromwildan merged 1 commit into
mainfrom
chore/release-plugin-search-algolia-0.1.0

Conversation

@gitfromwildan

@gitfromwildan gitfromwildan commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Summary

Prepares @docubook/plugin-search-algolia for its first npm release.

  • plugins/search-algolia/package.json: version goes from 0.0.0 to 0.1.0, and private is 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 publish on every push to main that 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.

  1. 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.
  2. Rebase this branch onto main, so the workspace has flame 2.5.0. Done: the branch sits on 7b5ca9a (v2.5.0).
  3. From this branch: cd plugins/search-algolia && npm login && pnpm publish --access public. Use pnpm so workspace:^ is rewritten. prepublishOnly runs the tests and the build.
  4. On npmjs.com, add the trusted publisher: GitHub Actions, DocuBook/docubook, release.yml.
  5. Mark this PR ready and merge it. changeset publish then finds 0.1.0 on npm and skips it.

Verification

  • pnpm pack produces docubook-plugin-search-algolia-0.1.0.tgz. It contains dist/index.js, dist/index.d.ts, dist/options.d.ts, dist/client/ (client.js, style.css, chunks/), README.md, LICENSE and package.json, with no runtime dependencies.
  • After the rebase onto v2.5.0, the packed manifest has "@docubook/flame": "^2.5.0" as its peer range, with no private field.
  • scripts/check-release-plan.mjs passes all 6 scenarios.
  • A probe changeset for a flame patch plans only the flame release.
  • The pre-push hook passes: lint, typecheck and build across the workspace.

@vercel

vercel Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docu Ignored Ignored Preview Nov 6, 2026 2:03am UTC

@gitfromwildan gitfromwildan self-assigned this Nov 6, 2026
@gitfromwildan
gitfromwildan marked this pull request as ready for review November 6, 2026 02:02
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.
@gitfromwildan
gitfromwildan force-pushed the chore/release-plugin-search-algolia-0.1.0 branch from 077b9b5 to a17127e Compare November 6, 2026 02:02

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 — version goes to 0.1.0 and private is removed. Since the branch is now on main (flame 2.5.0), pnpm pack rewrites the peer range to @docubook/flame: ^2.5.0, as the PR intends. The plugin folder has no LICENSE file, 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-plan passes 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.

Pullfrog  | Fix it ➔ | View workflow run | Using claude-opus-5-5 | 𝕏

@gitfromwildan

Copy link
Copy Markdown
Member Author

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 — version goes to 0.1.0 and private is removed. Since the branch is now on main (flame 2.5.0), pnpm pack rewrites the peer range to @docubook/flame: ^2.5.0, as the PR intends. The plugin folder has no LICENSE file, 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-plan passes 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.

Pullfrog  | Fix it ➔ | View workflow run | Using claude-opus-5-5 | 𝕏

The package has been published to npm. @pullfrog

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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-algolia shows latest: 0.1.0, published 2026-11-06T02:15Z.
  • The packed manifest has version: 0.1.0, no private field, no leftover workspace: ranges, and the peer is @docubook/flame: ^2.5.0. That range matches flame 2.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.ts and dist/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-stage placeholder: the registry also lists a 0.0.0-stage version ("Temporary package placeholder for staged publishing"), created about a minute before 0.1.0. latest points to 0.1.0, so installs aren't affected. If you'd rather hide it, run npm deprecate @docubook/[email protected] "placeholder".

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

@gitfromwildan
gitfromwildan merged commit 3ca83ca into main Nov 6, 2026
15 checks passed
@gitfromwildan
gitfromwildan deleted the chore/release-plugin-search-algolia-0.1.0 branch November 6, 2026 02:24
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.

1 participant