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

The packageFiles of type plain-text are not parsed and there is fallback to latest repository tags even if it's OK #924

Open
zdraganov opened this issue Aug 11, 2022 · 0 comments
Labels

Comments

@zdraganov
Copy link

zdraganov commented Aug 11, 2022

Describe the bug
Using standard-version@9.5.0 with the following configruration:

{
    "packageFiles": [
        {
            "filename": "VERSION",
            "type": "plain-text"
        }
    ],
    "bumpFiles": [
        {
            "filename": "VERSION",
            "type": "plain-text"
        }
    ],
    "scripts": {
        "prechangelog": "rm CHANGELOG.md"
    }
}

The VERSION file content is:

1.2.0-dev.4

Also I have a tag 1.2.0-stage.5 in my repository (which later will be used as a fallback for the version bump).

Current behavior
standard-version suggests 1.3.0-dev.0.

Expected behavior
standard-version suggests 1.2.0-dev.5

Environment

  • standard-version 9.5.0
  • Node/npm version: v16.14.2

Additional context
Tried with JSON file instead of plain-text and it works as expected

@zdraganov zdraganov added the bug label Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant