Thanks for getting in touch! This has been resolved in another thread over here:
However I’ll share the answer here for visibility. We have a System Variable which will return the version for a package associated with a step:
Using this variable in your deployment, you can target any step in your deployment with the action part of the variable like below:
We have some further information on different variables available during your deployment on our System Variables documentation page.
Please feel free to get in touch if you have any questions at all here.