mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-04-28 11:30:15 +00:00
- Update README with versioning workflow details - Implement dynamic version display in App.jsx using imported VERSION - Prepare infrastructure for automated version updates via GitHub Actions
1.2 KiB
1.2 KiB
Version Update Workflow
This GitHub workflow automatically updates the application version when a new release is created.
How it works
- When you create a new release on GitHub, the workflow is triggered
- It updates the
frontend/src/utils/version.jsfile with the new version number - It also updates the version in both the root and frontend
package.jsonfiles - The changes are committed and pushed back to the repository
Creating a new release
To create a new release and update the version displayed in the app:
- Go to your GitHub repository
- Click on "Releases" in the right sidebar
- Click "Create a new release" or "Draft a new release"
- Enter a tag version (e.g.,
v1.0.1or1.0.1) - Add a title and description for your release
- Click "Publish release"
The workflow will automatically update the version in your codebase.
Notes
- The version displayed in the app header will be updated to match the release tag
- If you use a tag with a 'v' prefix (e.g.,
v1.0.1), the 'v' will be removed in the version file, but the app already adds the 'v' when displaying it - Make sure your repository has the necessary permissions for the GitHub Action to push changes