Skip to content
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

Release script fails if no latest release tag exists #937

Open
WIStudent opened this issue Aug 27, 2024 · 0 comments
Open

Release script fails if no latest release tag exists #937

WIStudent opened this issue Aug 27, 2024 · 0 comments

Comments

@WIStudent
Copy link

I ran into the issue that the release script fails after step 6. Tag a new release if no latest release tag exists:

fatal: No names found, cannot describe anything.
No tags found (yet) - Continue to create and push your first tag
The latest release tag is: [unknown]
Enter a new release tag (vX.X.X format): v1.0.0
Tag: v1.0.0 is valid syntax
Make sure the version field in package.json is v1.0.0. Yes? [Y/n] y
Tagged: v1.0.0

This seems to be caused by

# 7. Set 'is_major_release' variable
latest_major_release_tag=$(expr "$latest_tag" : "$major_semver_tag_regex")

which fails with exit code 1 if latest_tag contains [unknown].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant