@e18e/setup-publish
v0.0.9
Published
A CLI to help with building publish workflows.
Readme
@e18e/setup-publish
A tiny CLI to assist with setting up GitHub workflows for publishing packages to npm.
Install
$ npm install -g @e18e/setup-publishUsage
$ setup-publishOptions
By default, the CLI runs in interactive mode, prompting you for configuration options. You can also provide options directly via the command line with --no-interactive to skip the prompts entirely.
| Option | Description | Default | Values |
|--------|-------------|---------|--------|
| --output <path> | Output path for the generated workflow file | .github/workflows/publish.yml | Any valid file path |
| --template <name> | Template to use for workflow generation | default | default - Manual GitHub release managementchangelogithub - Automated changelog with changelogithubchangesets - Automated releases with changesets |
| --env <env> | GitHub environment for deployment protection | none | Any environment name |
| --interactive | Run CLI in interactive mode | true | boolean |
Examples
# Interactive mode (default)
setup-publish
# Generate workflow with changesets template (non-interactive)
setup-publish --no-interactive --template changesets
# Custom output path with GitHub environment (non-interactive)
setup-publish --no-interactive --output .github/workflows/release.yml --env production
# Use changelogithub template with custom environment
setup-publish --no-interactive --template changelogithub --env stagingLicense
MIT
