UNPKG

@alessiofrittoli/node-scripts

Version:
19 lines (16 loc) 703 B
import { Release } from '../types.mjs'; /** * Executes the release process for a project. * * This function performs the following steps: * 1. Retrieves the project's `package.json` file. * 2. Retrieves process options and sets various release parameters. * 3. Validates the version and access options. * 4. Determines the Git origin for pushing tags. * 5. Builds the project, creates a Git tag, pushes the tag, and optionally publishes to npm. * 6. Logs the release details if verbose mode is enabled. * * @throws Will exit the process with code 1 if any critical error occurs during the release process. */ declare const release: (options?: Release.Options) => void; export { release };