New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
print-version
missing in v8
#638
Comments
Hey @shooit - have you tried the following: semantic-release --noop version --print The
so you might get some mileage/simplification out of that too. |
@bernardcooke53 thanks for the response I tried For example, my project is at version |
Ah, I see - there's no For your use case there's a few useful one-liners with different tools: toml get pyproject.toml project.version
pip install tomli && python3 -c "import tomli; print(tomli.load(open('pyproject.toml'))['project']['version'])"
cat pyproject.toml | grep "version *=" | sed -r 's/^version *= *"(.*)"$/\1/' Possibly a useful feature would be a new command, semantic-release list-versions -n 1 to get the latest version. What do you think? |
Printing the current version is addressed in pull request #852. You can choose to print the last released version number or tag. |
Released with v9.2.0 |
The problem
v8.x no longer supports the
print-version
command or another path to get the current version of the projectExpected behavior
We have been using the
print-version
command to determine if a release was made in our CI processes. For example,The text was updated successfully, but these errors were encountered: