Increment the version separately from releasing #3893
-
|
I have a package that builds executables for several platforms and publishing those as part of a GitHub release. This is achieved by GitHub actions with this structure (on the main branch):
The build steps publish the executables, the publish step downloads them and uses I need to embed the version number into the executables. I can modify the build process to do so if I know the version number, but how do I find it before publishing?
So far I can think of two features that could help:
What's the best way to get the versions into my executables? Update: I have tried making a separate Semantic Release configuration for the build step. The step changed the version in the file but unconditionally pushed the new tag to the repository, where the other build step running in parallel picked it up and realised there were no changes to be made. Reiterating: the build step happens on three separate machines (CI runners), then the release step on another CI runner, so I have to run Semantic Release four times (number of builds + 1). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Hi @koterpillar, This is possible, in order to get started, you gotta understand the release lifecycle and what property is available in each step.... The release lifecycle is a split of steps where different operation is performed towards fulfilling a release. Across the each step lives a certain object called You will be particularly interested in the the So ideally, you have 2 options...
Hope this helps 😉 |
Beta Was this translation helpful? Give feedback.
-
|
Workaround: I've written a plugin to just... stop the release process. It works like this:
Here is the semantic release configuration, build and publish steps. |
Beta Was this translation helpful? Give feedback.
Workaround: I've written a plugin to just... stop the release process. It works like this:
Here is the semantic release configuration, build and publish steps.