Skip to content

Ship released CLI to npm (first publish) #2

Description

@lukaso

The CLI is built (packages/cli/dist/cli.js exists) but has never been published. As a result the "CLI" link in nav + footer (https://www.npmjs.com/package/released) 404s, and npx released ... (advertised in README.md) does not work.

Blockers:

  • packages/cli/package.json is "private": true and version: "0.0.0"
  • packages/core/package.json is "private": true and version: "0.0.0" — and the CLI's dist/cli.js imports @released/core as an external (not bundled), so core has to be published too
  • No changeset exists, so the Changesets release workflow won't publish anything

Plan:

  1. Remove "private": true from both packages/cli/package.json and packages/core/package.json
  2. Update packages/core/package.json description (drop the stale "not separately published in v1" line)
  3. Add a changeset (pnpm changeset) — both packages bump together because of the linked config in .changeset/config.json. Likely 0.1.0 minor since this is the first public release.
  4. Merge the Changesets-generated "Version Packages" PR → workflow auto-publishes via npm Trusted Publishing (OIDC) per .github/workflows/release.yml
  5. Confirm npm view released returns a real entry and npx released github.com/facebook/react/commit/<sha> works end-to-end

Verification:

  • After publish, the existing nav/footer links to npmjs.com/package/released resolve.
  • README's npx example works without a workspace clone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions