A tool for publishing packages using Changesets with automated NPM authentication.
pnpm add -D @pixpilot/changesetThis 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.
changeset-publish [options]--dry-run, -dRun changeset publish with --dry-run flag--nextPublish to the next tag--help, -hShow this help message
# Dry run publish
changeset-publish --dry-run
# Publish to next tag
changeset-publish --next
# Show help
changeset-publish --helpimport { publish } from '@pixpilot/changeset';
publish({ isDryRun: false, isNext: false });-
Create a
.envfile in your project root with your NPM token:NPM_TOKEN=your_npm_token_here -
Run the publish command:
pnpm run publish