Repository navigation
ci(release): adopt the shared npm release workflow standard - #5
Merged
Merged
Conversation
Make release.yml match diffbot-typescript's shape (diffbot-dev-docs docs/conventions/npm-release-workflow.md): - verify: tag vs package.json, "private" flag (folded in from the old guards job) and a required `## [X.Y.Z]` CHANGELOG section; outputs the version. - gates: lint, typecheck, test, build, pnpm pack on Node 22 (unchanged). - publish: now also runs on workflow_dispatch as `npm publish --dry-run`; only a tag push publishes. npm pinned to ^11.21.0 instead of latest. - github-release: notes come from the CHANGELOG section instead of --generate-notes, and versions containing "-" are marked --prerelease. - move-next: unchanged apart from the npm pin. CHANGELOG heading becomes `## [0.1.0] - 2026-11-17` so the shared extractor finds it. CONTRIBUTING.md, CLAUDE.md and README.md describe the new flow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
npm >= 11.21 treats `npm publish --dry-run` of an already-published version
as an error ("You cannot publish over the previously published versions").
A dry-run dispatch of a current version therefore now packs the tarball
instead. A rehearsal of a not-yet-published version still uses
`npm publish --dry-run`. Tag-push publishes are unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Homogenize this repo's release process with the other npm TypeScript packages (
@diffbot/typescript,@diffbot/pi,@diffbot/langchain). The shared shape is based ondiffbot-typescript'srelease.yml.No version bump and no release is being cut.
Changes
verify: tag vspackage.json, the"private": truecheck (folded in from the oldguardsjob), and a required## [X.Y.Z]CHANGELOG section.gates: lint, typecheck, test, build, andpnpm packon Node 22 (same commands as before). The Node andaipeer matrices stay inci.yml.publish: aworkflow_dispatchdry run now also runsnpm publish --dry-run(still publishes nothing). Only a tag push publishes. npm is pinned to^11.21.0. An already-published version is skipped so re-runs are safe.github-release: notes come from the CHANGELOG instead of--generate-notes, and versions containing-are marked--prerelease.move-nextis unchanged apart from the npm pin.## [0.1.0] - 2026-11-17(heading line only) so the shared extractor finds it.CONTRIBUTING.md,CLAUDE.md, andREADME.mddescribe the new flow. The stale "not on npm yet" note is removed (@diffbot/ai-sdk@0.1.0is published).PLAN.mdis untouched.Trusted publishing (OIDC, no npm token) and the
release.ymlfilename are unchanged.Test plan
v*tag or a manual dispatch; this PR does not tag or publish.