Repository navigation
ci(release): align release.yml with the shared npm release standard - #9
Merged
Merged
Conversation
Template-level cleanups so the four npm TypeScript repos can share one release.yml shape (diffbot-dev-docs docs/conventions/npm-release-workflow.md): - Rename jobs to verify / gates / workers / publish / github-release / move-next. - Pin npm to ^11.21.0 in publish and move-next (was ^11.5.1 / latest), the minimum that supports trusted publishing and `npm dist-tag` over OIDC. - Publish with --ignore-scripts: dist/ is built in the job, so prepublishOnly must not rebuild it. - persist-credentials: false on every checkout. - Header comment describes the shared contract plus this repo's extras. No behavior change to gates, dist-tags, release notes or move-next. 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
Align this repo's
release.ymlwith the shared npm release workflow used by@diffbot/ai-sdk,@diffbot/pi, and@diffbot/langchain. Those three PRs adopt this file as the template; these are the small cleanups so all four stay in sync.No version bump and no release is being cut.
Changes
verify/gates/workers/publish/github-release/move-next.^11.21.0inpublishandmove-next(was^11.5.1/latest). This is the minimum that supports trusted publishing andnpm dist-tagover OIDC.--ignore-scripts, becausedist/is already built in the job andprepublishOnlymust not rebuild it.persist-credentials: falseon every checkout.constants.tsVERSION, Node 18/20/22, workers fixture).Gates, dist-tag rules, CHANGELOG notes,
--prereleasefor-versions, andmove-nextbehavior are unchanged. Trusted publishing (OIDC, no npm token) and therelease.ymlfilename are unchanged.Test plan
tests.yml) is green, including the workers fixture.v*tag or a manual dispatch; this PR does not tag or publish.