-
-
Notifications
You must be signed in to change notification settings - Fork 702
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
[Unity] Azure Pipelines doesn't change package version #1195
Comments
Duplicate of #1000 |
The version number is incremented with each commit anyway. So running |
Unfortunately, fixing build number in release package is not enough for OpenUPM to pick up new version.
What do you this about making another branch for Or, if we are speaking about branching, we can just commit content of |
Yes, if OpenUPM is opening the repo from source instead of the packages we build, then that seems like a reasonable solution. |
My other repository, I've changed release flow,use GitHub Action's |
If I understood correctly @AArnott doesn't like versioning commits like this one even for release workflows. Here (in MessagePack-CSharp) git height is used for versioning. So each meaningless/versioning/infrastructure commit increase patch version and bloat git history. Personally, I'm ok with any path we choose if we solve main issue: provide stable and reliable path to discover, install and upgrade for |
I'm not against version-only commits around releases. We could write a little script in the repo that we use to update the Does that sound like a reasonable solution? |
Sure, updating OpenUPM's pipeline is triggered via release, so its fine to update {
"dependencies": {
"com.neuecc.messagepack": "https://github.com/neuecc/MessagePack-CSharp.git?path=/src/MessagePack.UnityClient/Assets/Scripts/MessagePack#v2.2.85"
}
} |
Is your feature request related to a problem? Please describe.
Current published version of MessagePack-CSharp is v2.2.85.
Version defined in Unity's upm
package.json
in repository is still v2.2.60.https://github.com/neuecc/MessagePack-CSharp/blob/2328df7cc3b4b84fd0842d07390a25b9043959c5/src/MessagePack.UnityClient/Assets/Scripts/MessagePack/package.json#L4
Version defined in released v2.2.85 unity package (MessagePack.Unity.2.2.85.unitypackage) is still v2.2.60 too.
Version mismatch between released package and
package.json
breaks OpenUPM pipeline.Describe the solution you'd like
Automatic versioning for
package.json
via Azure pipelines.Version can be increased via
npm version <version>
and then committed with[skip ci]
in message to avoid triggering a CI build again.Something like (not tested, just for reference):
Describe alternatives you've considered
We can manually do versioning for
package.json
each release. But as OpenUPM log shows that's not an error prone way.The text was updated successfully, but these errors were encountered: