MiHCM

Registry Access

MiHCM packages are public npm packages under @mihcm/*. Consumers do not need a GitHub personal access token, package token, or project .npmrc.

Access Model

ChannelStatus
Public npmCurrent public package registry.
GitHub PackagesLegacy/internal-only channel; do not use for community installs.
Copy-paste CLISupported for selected primitives through @mihcm/cli add.

Local Developer Setup

Install from the default npm registry:

pnpm add @mihcm/ui @mihcm/theme @mihcm/tokens @mihcm/icons

CI Consumer Setup

CI does not need package auth for MiHCM installs. Use the normal lockfile install:

- run: corepack enable
- run: pnpm install --frozen-lockfile

Only add npm authentication if your application also depends on other private packages.

Verification

These commands should work without an auth token:

pnpm view @mihcm/theme version
pnpm view @mihcm/ui version
pnpm install --frozen-lockfile

Troubleshooting

ErrorMeaningFix
ERR_PNPM_FETCH_401 or 403 from npm.pkg.github.comA user/project .npmrc still routes MiHCM packages to GitHub PackagesRemove @mihcm:registry=https://npm.pkg.github.com and legacy @yashiel:registry=https://npm.pkg.github.com lines from project and user npm config.
E404 Not Found from registry.npmjs.orgPackage name typo or old lockfile registry metadataConfirm the package name and refresh the lockfile.
Works locally but not CICI has a stale .npmrc or cacheRemove the GitHub Packages override and clear the package-manager cache.

Publishing Boundary

The source repository stays private. Package publishing is maintainer-only through the release workflow and public npm trusted publishing/provenance. Consumers should never need publish tokens.