aube publish
- Usage:
aube publish [FLAGS] [TARBALL|FOLDER] - Effect: modifies state
Publish the current package to the registry
Arguments
[TARBALL|FOLDER]— Tarball or package directory to publish (default: current package).
Flags
--access <LEVEL>— Publish aspublicorrestricted.Sent as the
accessfield in the publish body; scoped packages default torestrictedon the registry side, so pass--access=publicto make a new scoped package world-readable.--dry-run— Don't upload; print what would be published.--force— Republish even when the version is already on the registry.By default
aube publishissues a GET before the PUT and refuses to proceed when the version exists, surfacing a clear error instead of relying on the registry to return 409. In--recursive/--filtermode,--forceoverrides the silent "already-published" skip so every selected workspace package is re-PUT. The registry must still accept the republish — npm's public registry rejects re-publishes outright; Verdaccio and most private mirrors allow them.--ignore-scripts— Skip publish lifecycle scripts.Suppresses
prepublishOnly,prepublish,prepack,prepare,postpack,publish, andpostpublishscripts for this publish.--json— Emit the publish result as JSON.Output matches
npm publish --json/pnpm publish --json; recursive multi-package publishes emit an array.--no-git-checks— Skip the "working tree must be clean" check.When unset, aube refuses to publish from a dirty git checkout (uncommitted tracked changes) or from a detached / non-release branch.
--otp <CODE>— One-time password for registries that require 2FA.Sent verbatim as the
npm-otpheader.--provenance— Generate a SLSA provenance attestation and attach it to the publish body.Requires an OIDC-capable CI environment (GitHub Actions with
id-token: write, GitLab CI, Buildkite, or CircleCI) — aube signs via the Sigstore public-good instance (Fulcio + Rekor) and attaches the resulting bundle so registries that honor npm's provenance protocol light up the "provenance" badge on the published version.--tag <TAG>— Default dist-tag to publish under (default:latest).-h --help— Print help
Network
--fetch-retries <N>— Number of retry attempts for failed registry fetches.Overrides
fetchRetries/fetch-retriesfrom.npmrc/aube-workspace.yamlwhen set. Pair with--fetch-timeoutto fail fast in scripted test runs.--fetch-retry-factor <N>— Exponential backoff factor between retry attempts.Overrides
fetchRetryFactor/fetch-retry-factorfrom.npmrc/aube-workspace.yamlwhen set. Integer-only; fractional values like1.5are rejected.--fetch-retry-maxtimeout <MS>— Upper bound (ms) on the computed retry backoff.Overrides
fetchRetryMaxtimeout/fetch-retry-maxtimeoutfrom.npmrc/aube-workspace.yamlwhen set.--fetch-retry-mintimeout <MS>— Lower bound (ms) on the computed retry backoff.Overrides
fetchRetryMintimeout/fetch-retry-mintimeoutfrom.npmrc/aube-workspace.yamlwhen set.--fetch-timeout <MS>— Per-request HTTP timeout in milliseconds.Overrides
fetchTimeout/fetch-timeoutfrom.npmrc/aube-workspace.yamlwhen set. Covers the whole request (headers and body together).--registry <URL>— Override the default registry URL for this invocation.Use this npm registry URL for package metadata, tarballs, audit requests, dist-tags, and registry writes.