numerique-gouv / people

Teams management application
MIT License
13 stars 1 forks source link

Create version.json files on both backend and frontend on push #524

Closed Morendil closed 2 days ago

Morendil commented 6 days ago

Purpose

Display version information in the app's footer to help acceptance testing and debugging.

Fixes #510

Proposal

This supplements the release process. We inject Github metadata into two version.json files; the 'version' value will be filled with github.ref_name, which will depend on the type of event, for release tag events it should be the same as the release tag (i.e. the app version). This should make version information available to the /config endpoint on any push, and the frontend should display the backend version.

Relevant documentation: Accessing contextual information about workflow runs