diff --git a/.changeset/wild-horses-refuse.md b/.changeset/wild-horses-refuse.md new file mode 100644 index 0000000000..6d0657273c --- /dev/null +++ b/.changeset/wild-horses-refuse.md @@ -0,0 +1,12 @@ +--- +'@backstage/plugin-scaffolder-backend': minor +'@backstage/plugin-scaffolder-node': minor +--- + +BREAKING ALPHA: The `checkpoint` method now takes an object instead of previous arguments, which allows also for an optional `key` which will be an incrementing counter for each call of the `checkpoint` method per step. + +```ts +await ctx.checkpoint({ key: 'repo.create', fn: () => ockokit.repo.create({...})}) +``` + +You can also now return `void` from the checkpoint if the method returns `void` inside the `checkpoint` handler.