Skip to content

ci(release): align release.yml with the shared npm release standard - #9

Merged
shixish merged 2 commits into
mainfrom
chore/homogenize-release
Nov 27, 2026
Merged

shixish merged 2 commits into
mainfrom
chore/homogenize-release

Conversation

@shixish

@shixish shixish commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Why

Align this repo's release.yml with 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

  • 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). This is the minimum that supports trusted publishing and npm dist-tag over OIDC.
  • Publish (and the dispatch dry run) with --ignore-scripts, because dist/ is already built in the job and prepublishOnly must not rebuild it.
  • persist-credentials: false on every checkout.
  • Header comment describes the shared contract plus this repo's extras (constants.ts VERSION, Node 18/20/22, workers fixture).

Gates, dist-tag rules, CHANGELOG notes, --prerelease for - versions, and move-next behavior are unchanged. Trusted publishing (OIDC, no npm token) and the release.yml filename are unchanged.

Test plan

  • PR CI (tests.yml) is green, including the workers fixture.
  • The release workflow itself only runs on a v* tag or a manual dispatch; this PR does not tag or publish.
shixish and others added 2 commits November 27, 2026 12:28
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.
@shixish
shixish merged commit 26919a8 into main Nov 27, 2026
12 checks passed
@shixish
shixish deleted the chore/homogenize-release branch November 27, 2026 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant