Skip to content

[INFRA] Automate bpmn-visualization-js update #5

@tbouffard

Description

@tbouffard

We would like to update the js lib used by the R package when a new bpmn-visualization JS release is available.
If possible, automate the process. We do this for the examples repository with GitHub workflows.

Possible solutions

Note: not exhaustive, add new ideas

Getting the js file
We use the min IIFE bundle, that can be retrieved from unpkg or jsdelivr (what we use in bpmn-visualization-examples).
It is available for download usage once the npm package has been published.

Triggering the workflow
We can do as for the bpmn-visualization-examples: on new git tag in bpmn-visualization, the existing workflow could trigger a workflow in bpmn-visualization-R by sending a repository dispatch. We need to pass the new version to use in the R package
It should also be possible to trigger the workflow manually with workflow_dispatch

Knowing that the file is available on npm
To wait for npm package availability, we could use the npm info command as done by bpmn-js: https://github.com/bpmn-io/bpmn-js/blob/v8.7.3/.github/workflows/POST_RELEASE.yml#L21

The wait check could be done in the R package repository as this is where we know that we need it.
But technically, this can also be done in the bpmn-visualization repository

Metadata

Metadata

Assignees

No one assigned

    Labels

    choreBuild, CI/CD or repository tasks (issues/PR maintenance, environments, ...)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions