Closed alvindizon closed 4 weeks ago
just update LIBRARY_VERSION=0.1.0 to LIBRARY_VERSION=0.1
What if we have a patch? Like 0.1.1?
If you're using autoversion, then it will incrementally append a version. The version set in LIBRARY_VERSION is a prefix to that auto incremented version.
You can choose to specify versions manually with manualVersions()
We have a new version of KMMBridge coming out soon which no longer uses auto versioning
Summary
So I've been trying out KMMBridge via this Codelab, and encountered a head scratcher--I specified my KMP library to have a library version of 0.1.0. But the logs in Github Actions show that it doesn't recognize this and instead thinks that the version is 0.1.0.0.
nextVersion parameter must be a valid semver string. Current value: 0.1.0.0
Details
Following the Codelab, I've defined my KMP library version in my gradle.properties like this
My build.gradle.kts looks like this:
And I have defined Github Action to publish on demand as follows:
But I've encountered the following error:
It seems the library version is not being parsed properly.
Reproduction
See https://github.com/alvindizon/NewsReaderKMP/actions/runs/9243837175/job/25428451920 and https://github.com/alvindizon/NewsReaderKMP.
Expected result
Semantic versioning should be recognized by touchlab/autoversion-tagmaker
Current state
Github Actions fails due to
Error: nextVersion parameter must be a valid semver string. Current value: 0.1.0.0
Possible Fix
N/A