chore: update the backend-plugin-api changeset

Signed-off-by: benjdlambert <ben@blam.sh>
This commit is contained in:
benjdlambert
2025-06-17 13:56:36 +02:00
parent 8f16117831
commit 46b2794c63
+27 -1
View File
@@ -2,4 +2,30 @@
'@backstage/backend-plugin-api': minor
---
Added `coreServices.actionsRegistry` and `coreServices.actions` to allow registration of distributed actions from plugins, and the ability to invoke these actions
Added `actionsRegistry` and `actions` experimental services to `/alpha` to allow registration of distributed actions from plugins, and the ability to invoke these actions. You can use these services by including them like the following:
```ts
import {
actionsRegistryServiceRef,
actionsServiceRef,
} from '@backstage/backend-plugin-api/alpha';
createBackendPlugin({
pluginId: 'test-plugin',
register({ registerInit }) {
registerInit({
deps: {
actions: actionsServiceRef,
actionsRegistry: actionsRegistryServiceRef,
},
async init({ actions, actionsRegistry }) {
actionsRegistry.register({
...,
});
await actions.invoke(...);
},
});
},
});
```