Repository navigation
feat(release): --changed ignores docs, skips npm from a private repo - #459
Merged
Merged
Conversation
Contributor
|
🎉 PR Validation ✅ PASSED Commit: Checks:
Ready to merge! ✨ 🔗 View workflow run |
vreshch
marked this pull request as ready for review
November 22, 2026 09:33
vreshch
force-pushed
the
feature/release-hardening-b
branch
from
November 22, 2026 09:37
539718d to
4ec23db
Compare
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.
Problem
release --changedreleases an extension when ANY file in its folder differs from its last<id>@*tag. With one extension at the repo root, every docs, CI or dev-tool merge is a release.--access publicwhenever the package is not"private": true. One missing flag in a private repo would put its source on public npm.Change
release-ignore.ts): defaultsdocs/**,*.md,.github/**,.repo-doctor.yml,.gitignore,.prettierrc*,.editorconfig,LICENSE. An optional.release-ignorein the extension folder adds gitignore-style patterns (#comments,!patternre-includes, last match wins).package.json,package-lock.json,src/**,Dockerfile*at the folder root always count. The diff uses--no-renames, so a move out ofsrc/still counts. Thechanged:line names the first 5 counted files; theunchanged:line names the ignored files when only those changed.--dry-runprints the same.release-npm.ts),--changedonly: a package that is not"private": truereadsgh api repos/<repo> --jq .privatebefore its tag. Onlyfalsepublishes. A private repo skips npm with oneAMBER npm:line unless the package setspublishConfig.access: "public"AND top-level"agentagePublishFromPrivateRepo": true. A failed or unclear read also skips npm (default deny). Images and records still go out; the row readsreleased, AMBER: npm skipped; exit 0.agentage(agentage.publishFromPrivateRepofailsreadManifest).v*mode unchanged: its test world answers everygh apiwith an empty success, so the guard would change its expectations.docs/reference.md) and the--changedhelp text.How verified
npm run verifygreen (1384+ tests).release-changed-ignore.test.ts(root layout with only workflow/docs/md, a lock bump,.release-ignorecannot ignoresrc/**orDockerfile*,!README.md, more than 5 files,extensions/<name>layout, a rename fromsrc/todocs/, an ignored-only diff on an unrecorded tag still releases),release-changed-npm.test.ts(public, private, half and full opt-in, failed and unclear reads,"private": truemakes no call),release-ignore.test.ts(matcher units).--changedtests: only thechanged:line (nowin index.js) and the new visibility call changed.v*tests untouched.Reviewer must check
agentage).https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212