Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 1.03 KB

File metadata and controls

59 lines (39 loc) · 1.03 KB

@pixpilot/changeset

A tool for publishing packages using Changesets with automated NPM authentication.

Installation

pnpm add -D @pixpilot/changeset

Usage

This package provides a CLI tool to publish packages with Changesets. It automatically reads the NPM_TOKEN from a .env file and creates a temporary .npmrc file for authentication.

CLI Usage

changeset-publish [options]

Options

  • --dry-run, -d Run changeset publish with --dry-run flag
  • --next Publish to the next tag
  • --help, -h Show this help message

Examples

# Dry run publish
changeset-publish --dry-run

# Publish to next tag
changeset-publish --next

# Show help
changeset-publish --help

Programmatic Usage

import { publish } from '@pixpilot/changeset';

publish({ isDryRun: false, isNext: false });

Setup

  1. Create a .env file in your project root with your NPM token:

    NPM_TOKEN=your_npm_token_here
    
  2. Run the publish command:

    pnpm run publish