Publishing packages
Follow these steps to publish packages to Artifactory, our private npm registry. Before trying to publish, make sure you are authenticated with Artifactory:
npm adduser --registry=https://elmosoftware.jfrog.io/artifactory/api/npm/elmo-consolidated-npm/
Use your Artifactory username; for password you may need an API key from your Artifactory profile.
- Pull the latest master branch.
- Create a branch for the version changes.
- Run pnpm run publish:version.
- The version script will create a release notes markdown file, and update all packages to their new version.
- Check the new release notes, and update with any desired changes. Run pnpm install to update pnpm-lock.yaml.
- Check the updated versions and ensure they are as expected. There should never be a version < 4.0.0.
- Commit the changes, push branch to Bitbucket and raise PR.
- When PR is approved, merge your branch into master, and pull the latest master locally.
- Run pnpm run publish:packages to publish the master branch to Artifactory.
- Run git push --follow-tags to push the version tags to Bitbucket.
- Deploy the docs site to staging and check it deployed successfully with the updated package docs.
- Deploy the docs site to production to ensure the consumer docs site matches what has been published.