CLI should get the package version from CI #260

Open
opened 2025-07-09 11:35:16 +01:00 by Vylpes · 3 comments
Owner

So that it can be automated

  • Update prod workflow
  • Update stage flow
  • Add building CLI to the test flow
So that it can be automated - [x] Update prod workflow - [x] Update stage flow - [ ] Add building CLI to the test flow
Vylpes added this to the 2.5.0 milestone 2025-07-19 14:29:01 +01:00
Vylpes self-assigned this 2025-07-19 14:34:46 +01:00
Vylpes added this to the 2.4 Sprint 5 project 2025-07-19 14:34:52 +01:00
Author
Owner

Just had a look and its not as simple as I initially thought, with the way that the CLI package uses a hardcoded string for the version and the packaging package I'm unsure.

I can't have it in the version in an external file as this file would then need to be alongside the binary. I also can't use an environment variable as this is at runtime.

Perhaps I can have the CI environment override a variable in a js script before compiling?

Just had a look and its not as simple as I initially thought, with the way that the CLI package uses a hardcoded string for the version and the packaging package I'm unsure. I can't have it in the version in an external file as this file would then need to be alongside the binary. I also can't use an environment variable as this is at runtime. Perhaps I can have the CI environment override a variable in a js script before compiling?
Vylpes stopped working 2025-07-19 14:53:54 +01:00
19 minutes 7 seconds
Vylpes removed this from the 2.4 Sprint 5 project 2025-08-19 19:14:05 +01:00
Vylpes added this to the 2.4 Sprint 5 project 2025-08-19 19:15:41 +01:00
Author
Owner

I have figured out a way to do it, its by having it in a constant typescript file, and have that file overridden by the workflow on build.

I have figured out a way to do it, its by having it in a constant typescript file, and have that file overridden by the workflow on build.
Vylpes stopped working 2025-08-19 19:48:43 +01:00
29 minutes 14 seconds
Author
Owner

I want to add uploading the binary as an artifact on feature branches so that we can test before merging

I want to add uploading the binary as an artifact on feature branches so that we can test before merging
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Total time spent: 48 minutes 21 seconds
Vylpes
48 minutes 21 seconds
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: RabbitLabs/random-bunny#260
No description provided.