publish: move constitution-cli off GitHub Packages to public npm#5
Merged
Conversation
…coped GitHub Packages requires an auth token to install even public packages — a platform limitation, not a visibility choice. Publishing to npmjs.org as unscoped `constitution-cli` lets anyone `npm install` with no token. Also updates install docs to recommend a local devDependency + npx over a global install, so the engine version stays pinned per-repo. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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
constitution-clifrom GitHub Packages to the public npm registry, unscoped (constitution-cliinstead of@chinmaygit/constitution-cli) — GitHub Packages requires an auth token to install even public packages, which blocked non-authenticated installs..github/workflows/publish.ymlto publish viaNODE_AUTH_TOKEN: secrets.NPM_TOKENagainstregistry.npmjs.org, and drops the now-unneededpackages: writepermission.cli/README.md,docs/quickstart.md,cli/AGENTS.md) to recommendnpm install --save-dev constitution-cli+npx constitution ...over a global install, keeping the engine version pinned per consuming repo.Test plan
npm run buildandnpm testpass locally incli/under the renamed package (23/23 tests)constitution audit/constitution firewallclean (pre-commit hook)NPM_TOKENrepo secret is set (confirmed by user) — merge will trigger the realnpm publishand the post-publish smoke test in CI🤖 Generated with Claude Code