Repository navigation
feat: npm_publish_packed, publishing packed release tarballs by trusted publishing - #43
Open
charlielye wants to merge 1 commit into
Open
charlielye wants to merge 1 commit into
charlielye wants to merge 1 commit into
Conversation
…ed publishing A release build packs its npm tarballs with deploy_npm's pack mode; npm_publish_packed publishes them from a job holding no npm credential, using the runner's OIDC token and --provenance. It keeps deploy_npm's dist-tag policy (now shared through npm_dist_tag), publishes each package after the bundled packages it depends on, refuses tarballs outside NPM_PUBLISH_SCOPES or at another version, and treats an already-published or staged version as done. 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.
Generic port of aztec-packages'
scripts/publish_npm_release, so aztec-node (and any other ci3 consumer) can stage npm tarballs in its release build and publish them from a GitHub job with npm trusted publishing, without anNPM_TOKEN.npm_publish_packed <dir>: publishes every*.tgzin<dir>with--provenance --ignore-scripts --access public.NPM_PUBLISH_SCOPES(required) lists the scopes the repository may publish; any other tarball is refused before anything is published.EXPECTED_VERSION, orGITHUB_REF_NAMEwithout its leadingv, is the only version accepted.deploy_npm: a version older than its tag's current version publishes undertmp-publish.DRY_RUN=1runsnpm publish --dry-run.npm_dist_tag <version>: the tag rule, moved out ofdeploy_npmso both share it. No behaviour change indeploy_npm.tests/npm_publish_packed_test: 11 cases against a fakenpm.deploy_npm_pack_teststill passes.🤖 Generated with Claude Code
https://claude.ai/code/session_01DSxF9AgGYcAcCTjXEeJT4L