Repository navigation
Publish the Node.js package and engine packages to npm, with provenance (#75) - #122
Merged
Merged
Conversation
…#75) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 tasks
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.
Closes #75
What
release.ymlnpmjob: now needsattest; downloads theengine-releaseartifact of the same run, runsgh attestation verifyon every file, thenscripts/fetch-engine.py --base-url engine-release --no-attestation(SHA256SUMS check, safe unpack,helloversion check). Verification is not weakened. Thennpm/build.mjs, a dry run (npm pack, file lists uploaded as artifact), thennpm/publish.mjs.clients/node/npm/publish.mjs: platform packages first,sqlguardllmlast;npm publish --provenance --tag <tag>; a version already on npm is skipped (safe re-run);optionalDependenciesmerged into package.json only for the publish and restored after,npm run buildruns afterbuild.mjssoengine-digests.jsonis in dist.--dry-runonly doesnpm pack.npm-pack.yml: on PRs runs build + dry run with placeholder engines (npm/fake-engines.mjs), asserts 6 tarballs and no src/test files, uploads the file lists. No secrets, read-only.id-token: writestays only in thenpmjob.guide-node.md(en/es) describe local mode; CHANGELOG; CONTRIBUTING Releasing.Owner steps before the first tag
npm Trusted Publishing is per package and, as far as I know, the package must already exist (no PyPI-style "pending publisher"; I could not verify this against current npm docs, please check). So: (1) publish a
0.0.0placeholder with--tag bootstrapfor each of the 5sqlguardllm-engine-*names by hand; (2) on npmjs.com, each of the 6 packages, Settings, Trusted Publisher: jmmana / sqlguardllm / release.yml / environmentnpm; (3) confirm the GitHub environmentnpmexists. Details in CONTRIBUTING.md.Not verified
The real release path (attestation verify on the artifact, real publish) can only run on a tag; the PR dry run uses placeholder engines. Local:
npm ci && npm run build && npm testpass (91 tests); dry run exercised locally.🤖 Generated with Claude Code