chore: changeset

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-11-14 09:34:41 -07:00
parent 93aa2fb4d1
commit e61d5ef286
+12
View File
@@ -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.