INTO-CPS-Association / DTaaS

:factory: :left_right_arrow: :busts_in_silhouette: Digital Twin as a Service
https://into-cps-association.github.io/DTaaS/
Other
116 stars 57 forks source link

[FEATURE] Add format and npm publish tasks to lib-ms.yml github action #969

Closed prasadtalasila closed 3 weeks ago

prasadtalasila commented 1 month ago

Describe the feature

This feature request has two small user stories. The stories are:

  1. As a developer, I want to check code formatting so that code format remains same across commits.
  2. As a developer, I want to publish npm package to npmjs.com so that the users always get the latest version of libms package

Describe the problems your feature request solves

  1. The current lib-ms.yml github action does not catch the formatting mistakes. Thus any formatting mistakes in PRs need to be manually conveyed to PR contributors. Such back-and-forth introduces delay.
  2. The current github actions publish npm package only to Github npm registry. The publication to npmjs is a manual process.

Describe the solution you'd like

The current lib-ms.yml has a step to publish npm package to Github npm registry. A similar step needs to be created for publishing the npm package to npmjs.com

Describe alternatives you've considered

None

Additional context

None

Success Criterion

Each new version of lib microservice will have an npm package published at npmjs.com

Checklist:

prasadtalasila commented 3 weeks ago

completed in PR #965