Versioning an Unlocked Package
Generate a New Version
A package version is a fixed snapshot of the package contents and related metadata. The package version lets you manage changes and track what’s different each time you release or deploy a specific set of changes.
When clicking for the first time on Generate New Version in the Unlocked Artifact record, the following warning will be displayed “You need to create a package first to be able to generate beta version”.
In order to successfully generate a New Version follow the steps below:
- Still while viewing the Generate New Version screen, click on Generate Package to generate the Unlocked Package for the first time.
- Once the package is generated successfully, click again on Generate New Version to create a new version of the package.
- In the new screen, define the new version details:
- Previous Release Version: read only field to inform previous release version of the artifact.
- New Version Name: new name for the version of the package.
- New Release Version: The version number of the package version. Must be in major.minor.patch.build format. (ex: 184.108.40.206)
- New Version Description: package description (e.g. summary of features)
- Installation Key: an option parameter to have an installation key for a key-protected package. If empty the installationkeybypass parameter will be automatically set to true.
- Click on Generate Beta version to create a new version of the package that can can installed.
Promote Beta version to Released version
For the package to be ready to be installed in Production Orgs, is needed to promote it to Released Version.
The Latest Package Version field on the Unlocked Package record is auto-populated upon new version creation.
Notice that there is also a related list of all the package versions.
- To begin with, locate the Artifact Version record in Beta and open the record.
- Click on Promote Beta to Release.
- You will see a screen with a short summary of the definition file.
- Click on Promote Package.
- After promoting the package, the Artifact Version record will be automatically flagged as Is Released.