docs: add the trusted publishing recipe to the docs and the skills - #198
Merged
Conversation
A new GitHub Action page describes publishing to npm without a token, as set up in nano_kit, Argue, and nanoviews: `id-token: write` on the publishing jobs, no `registry-url` and no `npm-token`, Node.js 24 for npm 11.5.1+, the trusted publisher registered per package and workflow file on npmjs.com (or with `npm trust github`), the snapshot job folded into `release.yml` behind a `snapshot` dispatch input because the registration is bound to the workflow file, automatic provenance, and the ENEEDAUTH causes. The release automation, snapshot, inputs, and agent skills pages link to it. The setup skill offers the token-or-trusted-publishing choice, detects it from existing workflows, generates the corresponding release job and the folded snapshot layout, and puts the registration into the final checklist; the simple-release-action skill recognizes the layout, dispatches snapshots through `release.yml`, and diagnoses ENEEDAUTH.
Coverage Report for CI Build 33973681226Coverage remained the same at 69.769%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
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
Documents the token-less npm publishing flow already running in nano_kit, Argue, and nanoviews, and teaches both agent skills about it.
New page: GitHub Action → Trusted Publishing
npm trust github ... --file release.yml --allow-publish; in thereleasejob addid-token: write, dropregistry-urlandnpm-token, use Node.js 24. The expected publish log with the provenance lines is shown, taken from a real nano_kit release.release.ymlbehind asnapshotdispatch input withif: inputs.snapshot == ''oncheck— the layout from nano_kit and nanoviews, verified by their dispatch runs. The separatesnapshot.ymlremains possible with a second registration (npm allows up to ten per package).publishConfig.provenance.Existing pages — release automation, snapshot release, action inputs, and agent skills link to the new page.
Skills
setup-simple-release-action: the token-or-trusted-publishing choice joins the single add-ons question; detection from existing workflows (id-token: write, no token); prerequisites including thenpm view <name> versionexistence check; the trusted publishing workflow variation; the folded snapshot layout; the registration steps in the final checklist.simple-release-action: recognizes the layout when reading the setup, dispatches snapshots throughrelease.yml, and diagnosesENEEDAUTH.Test plan
pnpm docs:build) with the lockfile from build(website): update astro and @astrojs/markdown-remark to satisfy Starlight 0.42 peers #197: 23 pages, the new page and its sidebar entry render🤖 Generated with Claude Code