wrangler-action/node_modules/@changesets/apply-release-plan/README.md

26 lines
1 KiB
Markdown
Raw Normal View History

2023-08-07 22:11:15 +02:00
# Apply Release Plan
[![View changelog](https://img.shields.io/badge/changelogs.xyz-Explore%20Changelog-brightgreen)](https://changelogs.xyz/@changesets/apply-release-plan)
This takes a `releasePlan` object for changesets and applies the expected changes from that
release. This includes updating package versions, and updating changelogs.
```ts
import applyReleasePlan from "@changesets/apply-release-plan";
import { ReleasePlan, Config } from "@changesets/types";
import { Packages } from '@manypkg/get-packages'
await applyReleasePlan(
// The release plan to be applied - see @changesets/types for information about its shape
aReleasePlan: ReleasePlan,
// The packages that applyReleasePlan should be run for from @manypkg/get-packages
packages: Packages,
// A valid @changesets/config config - see @changesets/types for information about its shape
config: Config
);
```
Note that `apply-release-plan` does not validate the release plan's accuracy.
To generate a release plan from written changesets use `@changesets/get-release-plan`