fix(release): the npm job says what it presented and why the registry refused; the documents describe the first release - #96
Merged
krzysztof-smartdataengines merged 1 commit intoSep 27, 2026
Conversation
… the documents describe the first release Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
krzysztof-smartdataengines
deleted the
fix/npm-trusted-publishing-diagnostics
branch
September 27, 2026 19:40
This was referenced Sep 27, 2026
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.
Summary
The first release through the workflow is out:
smart-data-engine-sdk0.1.0rc1 on PyPI (withattestations) and
@smart-data-engines/sde0.1.0-rc.1 on npm (with provenance). This PR makes the npmjob say why the registry refused it, if it ever does again, and brings the documents in line with a
release that exists.
Why the publishing job needs to say more
typescript-v0.1.0-rc.1was refused twice at the trusted-publishing exchange. The log said onlyENEEDAUTH. npm's OIDC helper never throws: it records why the exchange produced no token at verboselevel, in its debug log, on a runner that is gone when the job ends.
The cause turned out to be outside the workflow. The package had no trust configuration at all:
npm trust listanswered "No trust configurations found", although the website had appeared to saveit twice.
npm trust github … --allow-publish --yes, run in an interactive session with 2FA, createdthe configuration, and a re-run of the same job published. Finding that took an owner's terminal,
because the refusal carried nothing a reader could act on.
What changed
release.yml, publishing job:and prints its claims:
repository,repository_owner,workflow_ref,job_workflow_ref,environment,ref,event_nameandrunner_environment. These are what npm compares with thetrusted publisher. The token itself is decoded and never printed.
npm publish, the job prints theoidclines of npm's debug log. They carrythe registry's message, and no credential.
test_release.py: the claims step asks for npm's audience, prints the four claims that matterand never prints the token, and the failure path greps the debug log.
README.mdandexamples/weather/README.mdcalled the starter unreleased;docs/weather-starter.mdalso called it unreleased, and its install commands now come from theregistries, pinned, with the artefact path kept as the alternative;
docs/implementations.mdsaidnpm installinstalls nothing, and promised that the first npmpublish would come from CI. It could not: npm configures trusted publishing only on an existing
package;
docs/publishing.md§1 said nothing was published under the scope, §5 said the workflow hadnever run, and §5.5 now records what happened and says to read the trust configuration back
before tagging;
CHANGELOG.mdgets the publication date.Tests
oidclines are no longer printed, when the token is echoed, orwhen the
environmentclaim is dropped. A control, a comment edit, survives. The claims decoderwas run on a synthetic JWT with the same fields.
check_contexts.pystill passes: no checkout in the publishing job,id-tokenbehind theenvironment, and every action pinned.
make checkon the head55908c1, with both live engines:frozen-verification.live.test.tsand the firstrunWeathertest inweather.test.ts. This PRchanges no TypeScript. The load average was 5.8 on four threads, from other sessions'
batteries. In isolation the second test takes 0.9 s cold and 0.2 s warm; its cold cost now
includes the first
import('pg')added in fix(starter): refuse before writing what it can name, and let the fleet skip a run that never wrote #91. The TypeScript half ofmake checkrun againon the same head passed 999 of 999.
🤖 Generated with Claude Code