UNPKG

changesets-gitlab

Version:

[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/un-ts/changesets-gitlab/ci.yml?branch=main)](https://github.com/un-ts/changesets-gitlab/actions/workflows/ci.yml?query=branch%3Amain) [![CodeRabbit Pull Request Revie

35 lines (34 loc) 1.12 kB
import type { Gitlab } from '@gitbeaker/core'; import type { Package } from '@manypkg/get-packages'; export declare const createRelease: (api: Gitlab, { pkg, tagName }: { pkg: Package; tagName: string; }) => Promise<void>; export interface PublishOptions { script: string; gitlabToken: string; createGitlabReleases?: boolean; cwd?: string; } export interface PublishedPackage { name: string; version: string; } export type PublishResult = { published: false; } | { published: true; publishedPackages: PublishedPackage[]; }; export declare function runPublish({ script, gitlabToken, createGitlabReleases, cwd, }: PublishOptions): Promise<PublishResult>; export interface VersionOptions { script?: string; gitlabToken: string; cwd?: string; mrTitle?: string; removeSourceBranch?: boolean; mrTargetBranch?: string; commitMessage?: string; hasPublishScript?: boolean; } export declare function runVersion({ script, gitlabToken, cwd, mrTitle, mrTargetBranch, commitMessage, removeSourceBranch, hasPublishScript, }: VersionOptions): Promise<void>;