Publishing packages
Follow the below steps to publish packages to Artifactory. You must be logged into Artifactory in your terminal.
- Pull the latest master branch.
- Create a branch for the version changes.
- Run npm 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 npm i to update package-lock.json.
- 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 npm 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.