Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: simulate "trigger workflows when new version available on npm" #373

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

tbouffard
Copy link
Member

This simulates what we are achieving in the bpmn-visualization repository. Introduce a workflow that sends a repository-dispatch event which triggers the workflow that builds the bpmn-visualization demo for the repository of examples.

Additional refactoring

  • simplify the retrieval of inputs of a workflow_dispatch
  • bump peter-evans/repository-dispatch from v2 to v3 (mainly to enforce run with Node20) in the shared action

Covers process-analytics/bpmn-visualization-js#2864

This simulates what we are achieving in the `bpmn-visualization` repository.
Introduce a workflow that sends a repository-dispatch event which triggers the workflow that builds the bpmn-visualization
demo for the repository of examples.

Additional refactoring
  - simplify the retrieval of inputs of a workflow_dispatch
  - bump peter-evans/repository-dispatch from v2 to v3 (mainly to enforce run with Node20) in the shared action
@tbouffard
Copy link
Member Author

Merging as the new workflow can only be triggered manually once available in the default branch.
Testing will follow.

@tbouffard tbouffard marked this pull request as ready for review August 27, 2024 14:42
@tbouffard tbouffard merged commit 5c67a88 into master Aug 27, 2024
2 checks passed
@tbouffard tbouffard deleted the refactor/update_version_mgt_during_release branch August 27, 2024 14:43
@tbouffard
Copy link
Member Author

tbouffard commented Aug 27, 2024

✔️ Tests successful

Running the "simultate npm publish" workflow and validate that the chain of events is triggered

With a version related to a tag that doesn't exist (12.0.4)

With a version related to a tag that exists (3.0.3)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant