This project is hosted on NPM. You can find the terra packages here.
Releasing the project requires these steps:
-
If the package has not been released before, remove the private attribute from the package.json. The private attribute has been set to true in order to prevent accidental publication.
-
Verify that the version number in the package.json is correct.
- If the package is new, confirm that the version is
0.0.0
. - If the package has been published before, confirm that the version matches the latest released version. The publish script will update the version.
- If the package is new, confirm that the version is
-
Login to npm. You must have the credentials to the
cerner-oss
account.npm login
- Make sure to use thecerner-oss
account.npm whoami
- This should returncerner-oss
.
-
Execute the npm publish script from the root directory. Make sure to follow semantic versioning.
When run, this command does the following:
- Creates a new release of the packages that have been updated.
- Prompts for a new version.
- Creates a new git commit/tag in the process of publishing to npm.
More specifically, this command will:
- Check if the currently installed packages match package.json
- Compile
src
tolib
. - Run the test suite.
- Publish each module in
packages
directory that has been updated since the last version to npm with the dist-tag lerna-temp. - Run lerna updated to determine which packages need to be published.
- Update the package.json of all updated packages to their new versions.
- Update all dependencies of the updated packages with the new versions, specified with a caret (^).
- Create a new git commit and tag for the new version.
- Publish updated packages to npm.
- Once all packages have been published, remove the lerna-temp tags and add the tags to latest.