Programmatic API for managing npm organization memberships and roles
74
A small CLI helper that releases a package version to the registry and can quickly undo the release if needed. The tool must rely on the npm CLI dependency for all registry interactions.
dryRun option set, it simulates the publish using the registry CLI's dry-run behavior, leaves the registry unchanged, and returns the same summary fields plus a dryRun indicator. @test@generates
export async function runRelease(options);
/**
* options.packageDir: string - path to the package root
* options.version: string - semver being published or rolled back
* options.tag?: string - optional dist-tag to apply when publishing (default "latest")
* options.access?: "public" | "restricted" - access level when publishing scoped packages
* options.registry?: string - registry URL to target
* options.token: string - auth token used by the registry CLI
* options.otp?: string - one-time password for two-factor flows
* options.dryRun?: boolean - true to simulate publish without uploading artifacts
* options.rollback?: boolean - true to remove a recently published version instead of publishing
* options.now?: Date - injectable clock for testing rollback windows
* Returns an object describing the action taken and the registry URL used.
*/Provides the CLI to publish or remove package versions from the registry.
Install with Tessl CLI
npx tessl i tessl/npm-libnpmorgdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10