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
Graduating a prerelease with no further changes #1675
Comments
The current workaround I am using for this is to make an "empty" commit to the branch, such as whitespace change, then run |
This is too close to our problem described in #1667, after updating to 3.3.2 we are getting that @evocateur what do you think about that |
I would argue that the promotion of "staging" package > "latest" package should be allowed even without force. |
|
I started using Lerna and ran into this same issue. I published using "lerna publish --dist-tag next" with a prerelease version (2.0.0-alpha.0). After validation that it was good, I wanted to re-publish the packages with the updated version using the "latest" dist-tag. But Lerna says that there are no changes. I ended up moving the "Publish" commit to a "next" branch in git and reset the master branch to the previous commit. I could then publish from the master branch because there were changes on the master branch. However, it would still be good to have a way to have Lerna be able to republish a prerelease version as a release version. |
What I do to overcome this issue.
Commit package.jsons which have changed.
|
When we're happy with our latest prerelease we'd like to graduate the packages even if no further changes were made.
We thought this would be fixed in issue #1671, but we now get a new problem where lerna wont release an already released commit.
Expected Behavior
Version is updated from 0.0.1-prelease.0 to 0.0.1
Current Behavior
Steps to Reproduce (for bugs)
git commit -m'chore: example change'
lerna version prerelease --force-publish=lobby --yes --preid=prerelease --npm-tag=prerelease
=>0.0.1-prerelease.0
lerna version --force-publish=lobby --yes --conventional-commits
=> would like0.0.1
gotThe current commit has already been released
lerna.json
Context
We prerelease packages on every merge to our release branch. After testing we will manually take the decision to graduate these packages.
Your Environment
lerna --version
npm --version
yarn --version
node --version
The text was updated successfully, but these errors were encountered: