-
Notifications
You must be signed in to change notification settings - Fork 612
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
[build][bug] JS version string does not match the NPM version #8370
Comments
Huh, I thought releases happen from the stable branch, not the next branch. Either way, I would prefer extra commits than having to do a hard reset of main. We would have to do the reset not just for major releases but any releases, right? @hydrosquall can you help fix this issue? |
The release is created when Unfortunately, it looks like each time that happens, whatever version was present on
For any non-canary release, yea.
I'm not sure about the best approach for a long term fix ( this is really something we should solve for at the auto level intuit/auto#2047 ), but I can think about what a decent short term solution could be within the context of Vega. Specifically, this means could mean
I think 1 is a good enough solution to start with, since incrementing Vega minor versions isn't too frequent of an event. |
This issue is causing problems in the Vega editor as well where the displayed version is not correct. I think we need to find a fix soon or should revert back to making releases manually. @hydrosquall do you have an idea for
|
Hey @domoritz sorry for the delay here - I haven't been actively working on the intuit ecosystem as of late. I took a closer look at the shipit docs, and have two courses of action in mind. The first comes from the
I think this is a typo because what we actually need the reverse: getting the version that is sitting in I believe it's proposing merging I also just noticed there's a flag we could try that may help, but I'm not eager to spend too much more time debugging more CLI options. https://intuit.github.io/auto/docs/generated/npm#commitnextversion
If we do this, we could stop doing merges to the stable branch, and try to release only from If we just remove the "version bumping "part of auto, we could switch to using a simpler auto command which creates a github release for whatever version tag we apply manually when we do want to prepare a release
And then in our workflow that responds to the creation of releases https://github.com/vega/vega-lite/blob/next/.github/workflows/release-docs-and-schema.yml#L8 we could either make this workflow just publish to NPM but without trusting it to do any version bumping or changelog creation (as an alternative to publishing from someone's laptop). |
That seems like a good idea. We could make a release whenever there is a
I'm not a huge fan of that approach since there are a few steps involved in making a release that I would to run on the CI if possible. |
Catching up: to confirm, are we both on board with moving forward with
I want to make sure I understand the comment (below) before doing anything, since moving ahead with
|
I'm okay with moving forward as planned. For more long term, I would prefer switching away from auto since it doesn't work well and isn't really maintained anymore. I wonder how hard it would be to switch to release-it. |
Switched to release-it in 5.6.1. We can bring back the canary releases in a follow up. The version should be correct now. |
@domoritz thanks for taking care of fixing this! The canary releases in auto were convenient, but not worth the confusion cost created by not having the package version updated correctly. Good to know that the switch to release-it was smooth + that it's a more actively maintained package. I'll keep it in mind for future projects. |
Thanks for all you help on this. I think we could still have canary releases with release it but I'd need to think a bit about when to trigger them and how to not make GitHub releases. But I have other issues to work on for now. |
Reproduction case
version
string. Note that5.5.0
and5.2.0
do not match.Demo notebook: https://observablehq.com/d/175e42ebdc73221d
Leads
Stable is updated
vega-lite/package.json
Line 4 in 0a2b57f
However, Next is not
I think this is a result of the bug and/or missing workflow step I reported here: intuit/auto#2047
The fix might involve options 1 or 2 in the issue linked above. 1 is probably safer but creates extra commits, 2 is OK as long as we are comfortable with having an admin hard reset
next
each time a major release is cut.The text was updated successfully, but these errors were encountered: