Skip to content

chore(release): make pkg.pr.new the interim channel and pre-wire npm provenance - #40

Merged
ScriptedAlchemy merged 2 commits into
mainfrom
chore/pkg-pr-new-interim-channel
Aug 29, 2026
Merged

chore(release): make pkg.pr.new the interim channel and pre-wire npm provenance#40
ScriptedAlchemy merged 2 commits into
mainfrom
chore/pkg-pr-new-interim-channel

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

Owner decision: npm publishing stays off until the packages get their final names (current names are placeholders); pkg.pr.new is the release channel in the meantime, and the first npm releases will use npm package provenance. This PR makes the repo reflect that deliberately.

  • Audit result: package-preview.yml already publishes both agent-bundle and @agent-bundle/rsc-runtime on every pull request and every push to main (verified in run history), so every main commit already gets an installable snapshot — no trigger change needed. A real npm install smoke of the latest main preview (d708d94) into a fresh consumer succeeded for both packages: all supported entrypoints import and the CLI bin runs.
  • Pre-wired provenance, dormant: "publishConfig": { "provenance": true } on both publishable manifests and id-token: write on the release workflow. The existing no-NPM_TOKEN gate still skips every publish step (no repo secrets exist), so nothing activates now.
  • Docs: docs/preview-packages.md now states the deferral decision, matches the actual preview:publish flags, and documents the --legacy-peer-deps caveat the smoke surfaced (previews are 0.0.0-preview-<sha>, which doesn't satisfy rsc-runtime's agent-bundle@^0.1.0 peer range). One-line pointers added to the root README, packages/agent-bundle/README.md, and packages/rsc-runtime/README.md.

No changeset: workflow, manifest metadata, and docs only — no published runtime behavior changes.

Verification

  • pnpm typecheck, pnpm lint, pnpm test:unit: green
  • pnpm lint:package (publint) and packages/agent-bundle/tests/release-audit.test.ts (asserts packed manifest shape): green with the new publishConfig key
  • Live smoke: npm i --legacy-peer-deps https://pkg.pr.new/ScriptedAlchemy/agent-bundle/{agent-bundle,@agent-bundle/rsc-runtime}@d708d94 → all entrypoints import, CLI --help works

…provenance

npm publishing stays off until the packages get their final names; pkg.pr.new
previews (published on every PR and push to main) are the release channel in
the meantime. Pre-wire the eventual npm releases for package provenance:
publishConfig.provenance on both publishable manifests and id-token: write on
the release workflow, both inert behind the existing no-NPM_TOKEN gate.
Document the preview install flow (including the --legacy-peer-deps caveat a
real smoke install surfaced) and the deferral decision.
@changeset-bot

changeset-bot Bot commented Aug 29, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: cc5fbee

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 29, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-29T23:07:17.688042Z 5ec460a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pkg-pr-new

pkg-pr-new Bot commented Aug 29, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/ScriptedAlchemy/agent-bundle@40
npm i https://pkg.pr.new/ScriptedAlchemy/agent-bundle/@agent-bundle/rsc-runtime@40

commit: cc5fbee

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5ec460ae08

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/preview-packages.md Outdated
…never cancel a publish

Review finding on #40: the shared package-preview-refs/heads/main
concurrency group with cancel-in-progress could cancel an older main
run before pnpm preview:publish executed, breaking the documented
"every main commit has an installable snapshot" guarantee. Main pushes
now get a per-SHA group; PR runs keep per-PR cancellation.
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