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

Not releasing correct version if previous tag is not cloned down beforehand #28

Open
GeorgeCadwallader opened this issue Apr 10, 2023 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@GeorgeCadwallader
Copy link
Member

(NOTE: This issue has been replicated from the old repository)

Description

If the latest version is v1.0.0. If the commit from v1.0.0 is not cloned down, then conventional tools will try to release v0.0.1.

Expected Behaviour

The correct tag should be released, it should be at least more than the most recent tag.

Actual Behaviour

It is releasing version 0.0.1

Notice an error is thrown

›   Error: Command failed with exit code 128: git tag v0.0.1
›   fatal: tag 'v0.0.1' already exist

A workaround it to do a full clone when releasing. For github actions that will be the below

steps:
  - name: Checkout
    uses: actions/checkout@v3
      with:
        fetch-depth: 0

Steps to Reproduce the Problem

  1. git clone --depth 1 https://github.com/Practically/webpack-config
  2. cd webpack-config
  3. git fetch --tags
  4. export CT_TOKEN=xxx
  5. conventional-tools release-semver
@GeorgeCadwallader GeorgeCadwallader added the bug Something isn't working label Apr 10, 2023
@GeorgeCadwallader GeorgeCadwallader modified the milestones: 1.x, Backlog Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant