Repository navigation
chore: add scripts/npm_init_packages to create new npm packages for trusted publishing - #25912
Merged
Merged
Conversation
…rusted publishing A release publishes with npm trusted publishing, which can only publish to a package that already exists and trusts the workflow. This creates each missing package with a 0.0.0-init placeholder, waits for npm to process it, and adds the ci3.yml (master) trusted publisher, batched so the trust step needs a single 2FA prompt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DSxF9AgGYcAcCTjXEeJT4L
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.
Releases publish to npm with trusted publishing from the
publishjob inci3.yml. Trusted publishing can only publish to a package that already exists and trusts the workflow, so the first release of a new package fails withENEEDAUTH. That happened onv7.0.0-nightly.20261126.1for the new@aztec-foundation/wsdb-refpackages.scripts/npm_init_packages <package>...is the one-off step an npm owner runs by hand for new packages:0.0.0-initplaceholder for each package that doesn't exist;ci3.yml/mastertrusted publisher to each package that doesn't already have it.It can be re-run safely. A placeholder still being processed is treated as published instead of failing the run. Trust calls are batched after the wait, so they need one 2FA prompt with "skip for 5 minutes". It was used to set up the five
wsdb-refpackages.scripts/tests/npm_init_packages_testruns it against fakenpmandcurl, and is added to the scripts tests.🤖 Generated with Claude Code
https://claude.ai/code/session_01DSxF9AgGYcAcCTjXEeJT4L