Repository navigation
Release to npm and JSR on merging the Version Packages PR - #24
Merged
Merged
Conversation
release.yml now runs on push to main. A first job asks npm and JSR for each public package's version (scripts/check-unpublished.mjs) and the rest runs only when one is missing, so merging the Version Packages PR is the release. Tags and manual runs publish without asking. The npm job writes .npmrc itself: a token line when NPM_TOKEN is set, for a package's first version, and none otherwise so npm exchanges the OIDC token. A last job asks the registries again and fails if a version is still missing. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
dskvr
force-pushed
the
ci/release-on-merge
branch
from
November 10, 2026 10:14
51cdf71 to
e43a6bc
Compare
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.
What changes
release.ymlnow runs on every push tomain. Its first job runsscripts/check-unpublished.mjs, which asks npm and JSR for each public package's version; the validate, npm and JSR jobs run only when a registry is missing one. Merging the Version Packages PR is what makes a version missing, so merging it is the release. Av*tag or a manual run still publishes without asking..npmrcitself: a token line whenNPM_TOKENis set, none otherwise so npm uses trusted publishing.setup-node'sregistry-urlwrote a token line even with the secret absent, after which npm never tried OIDC.pnpm check:unpublishedis the local answer to "what would a release publish now". Today it lists all 8 versions (4 npm, 4 JSR).AGENTS.mdand the publish how-to are updated, including the order of steps for the first npm publish.What happens on merge
The first push to
mainafter this merges will see 8 unpublished versions and run the release:kernlscope and are linked to this repository.NPM_TOKENis set, because trusted publishing cannot carry a package's first version. Set the secret before merging (gh secret set NPM_TOKEN) or after, and the next push tomain(orgh workflow run release.yml --ref main) finishes the job. Then configure the trusted publisher on each package and delete the secret.Verified
scripts/check-unpublished.test.mjscovers the lookups, the missing-version rows and theGITHUB_OUTPUTverdict.pnpm checkgreen (slop 100).🤖 Generated with Claude Code