Skip to content

v2.0.0 - Overhaul with more customisation and better adherence to semver spec

Latest
Compare
Choose a tag to compare
@AlexStormwood AlexStormwood released this 10 Jul 11:27
· 1 commit to main since this release
301110e

This update is a doozy - in a good way, of course!

  • Overhaul to put the bulk of the action logic into an NPM package to improve testing & iteration speed
  • Reworked action inputs and outputs
  • Introducing a new semver string format system. This achieves two major things:
    • better adherence to semver spec
    • better customisation for those that wanna go "off-road" with their versioning

I fully expect this to have issues for existing Unity projects and existing CICD workflows. When you're updating your own workflows to use this new version of this action, please keep in mind:

  • It's up to you to determine what type of semver bump you want to do. There's an example on the readme now showing how you can use another action to determine the semver bump type based on your commit messages - commit message style guides like conventional commits really help with this stuff!
  • If your Unity project does not have its semver strings written in Style A, and your usage of this action expects them to be in Style A, then this action might fail. You may need to manually set the "Version" property in your Unity project's Player settings window to use the new syntax that you want to use, and then this action can detect and update it appropriately.

I've dogfooded this on an old, basic Unity prototype I had laying around. That won't reflect the full gitflow that larger teams and established projects may have - please feel free to raise issues to ask questions or request changes. I've been neck-deep in ElectronJS and ReactJS for the last year (and it's great for desktop 2D games, give it a try!) - so your insights with Unity will be more useful than mine right now!

Additionally, while I managed to find some platforms through googling and documentation (PSP2 versions, what?!), I definitely don't have access to all platforms that Unity supports. Most, but not all. Please let me know if there's a property missing that you need, and I'll add it to the action.

This overhaul makes it very easy to fix things and support more things - it's a huge improvement!

Full Changelog: v1.1.1...v2.0.0