I have a sfdx-project.json for my unlocked package. Version 1.0.0-11 was promoted.
{
"packageDirectories": [
{
"path": "force-app",
"default": true,
"package": "PACKAGE_NAME",
"versionName": "Version 1.0",
"versionNumber": "1.0.0.NEXT",
"features": "MultiCurrency"
}
],
"namespace": "",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "48.0",
"packageAliases": {
"PACKAGE_NAME": "0HoXXX",
"[email protected]": "04tXXX"
}
}
I want to release new version 1.0.1. I changed the following rows in the file:
- "versionName": "Version 1.0" to "versionName": "Version 1.0.1"
- "versionNumber": "1.0.0.NEXT" to "versionNumber": "1.0.1.NEXT"
After I try to create new package version the system creates new 1.0.0-12 instead of 1.0.1-1. Also it removes all my changes back for versionName and versionNumber.
What is the right way to release new version?