renovate/lib/config/presets/internal/npm.ts
Sergei Zharinov 6f7b4afd1e
feat(npm): migrate and deprecate unpublishSafe (#7464)
The existing npm-specific `unpublishSafe` setting will be removed and migrated instead to use `stabilityDays` (3). The `renovate/unpublish-safe` status check is also deprecated and the existing `renovate/stability-days` will be used instead.

Closes #5265

BREAKING CHANGE: The status check `renovate/unpublish-safe` will be replaced with `renovate/stability-days`. Please migrate any branch protection rules if you were relying on `renovate/unpublish-safe`.
2020-12-11 10:09:58 +01:00

11 lines
276 B
TypeScript

import { Preset } from '../common';
export const presets: Record<string, Preset> = {
unpublishSafe: {
description:
'Set a status check pending for 3 days from release timestamp to guard against npm unpublishing',
npm: {
stabilityDays: 3,
},
},
};