@pixpilot/changeset
v0.1.3
Published
A utility for changesets
Downloads
149
Readme
@pixpilot/changeset
A tool for publishing packages using Changesets with automated NPM authentication.
Installation
pnpm add -D @pixpilot/changesetUsage
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, -dRun changeset publish with --dry-run flag--nextPublish to the next tag--help, -hShow this help message
Examples
# Dry run publish
changeset-publish --dry-run
# Publish to next tag
changeset-publish --next
# Show help
changeset-publish --helpProgrammatic Usage
import { publish } from '@pixpilot/changeset';
publish({ isDryRun: false, isNext: false });Setup
Create a
.envfile in your project root with your NPM token:NPM_TOKEN=your_npm_token_hereRun the publish command:
pnpm run publish
