GithubHelp home page GithubHelp logo

Error Invalid version about release-it HOT 7 CLOSED

Visual-Dawg avatar Visual-Dawg commented on June 14, 2024
Error Invalid version

from release-it.

Comments (7)

webpro avatar webpro commented on June 14, 2024

The tag must be present on the remote in order to do create a release, but you're using --no-git (which also skips git push), so I guess that might be the culprit here.

from release-it.

Visual-Dawg avatar Visual-Dawg commented on June 14, 2024

Thank you for the quick answer!
I use release-it to create the tag and set the version locally, which should then trigger the CI (which uses release-it again and yes it is weird :D )
So the tag is already created.
Why is git push necessary though?

from release-it.

webpro avatar webpro commented on June 14, 2024

The tag must be present on the origin (gitlab) to create a release there.

You could try something like this (not tested): --no-git.comit --no-git.tag

from release-it.

Visual-Dawg avatar Visual-Dawg commented on June 14, 2024

Thank you for your help!
The flags do not change the output.
For the CI now: I checked out the master branch in pre-script and logged git tag -l.
The tag is set. I am going to tinker more with it. If I find the solution, I will post it here :)

from release-it.

webpro avatar webpro commented on June 14, 2024

Don't forget to remove --no-git if you try my suggestion btw. You can see the resulting config in debug mode

from release-it.

Visual-Dawg avatar Visual-Dawg commented on June 14, 2024

Thank you :) I already tried that, with the same result.
As the error said something about the version, I tried removing the version argument directly after release-it.
It still wont create a release because of the error You are not allowed to upload code, even when I provide an elevated token.
It will create correctly versioned packages fine though.

NODE_DEBUG=release-it:*  pnpm  release-it  --npm.skipChecks --VV  --npm.allowSameVersion --npm.ignoreVersion --npm.skipChecks=true  --gitlab.releaseName="@company/[email protected]" --no-increment --no-git.commit  --gitlab.release --gitlab.releaseNotes='echo "Release version $CI_COMMIT_TAG."' --no-git.tag --gitlab.assets="./output/*.tar.gz"

I assume this has something do to with the git clone master. I will continue my research
And thank you again for being so responsive

from release-it.

Visual-Dawg avatar Visual-Dawg commented on June 14, 2024

I solved it by using the Gitlab Release CLI for the releases and release-it for the package.
It works, and I can still use release-it for the version bumping and tagging, which is nice

from release-it.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.