oracle-samples / cerner-smart-embeddable-lib

npm project for developers to use in their SMART web app to be embeddable in Cerner’s MPage Workflow
Apache License 2.0
22 stars 31 forks source link

Updated the release script. #50

Closed shriniketsarkar closed 2 years ago

shriniketsarkar commented 2 years ago

The changes ensure the script runs the following in order :

  1. Trigger tests with old npm version
  2. Updates version based on the change type (e.g major, minor, patch, etc)
  3. Rebuilds the lib using new version to regenerate dist folder (this includes testing with new version)
  4. Commits and tags to git the latest changes.
  5. Pushes all changes and updated tags to origin.
  6. Triggers the publish mechanism

How to test :

  1. Clone the project and pull down the branch
  2. Run npm install
  3. Modify the release script to temporarily remove : && npm publish from line 8 of the release script.
  4. Run npm npm run release:minor
  5. It should do the above changes and push the changes to your branch in remote.
  6. Ensure the package version has been updated in package.json, package-lock.json, dist folder includes files created with updated version no.
kolkheang commented 2 years ago

Thanks @shriniketsarkar for taking care of this. Could you update the instruction to the latest in this file as well? https://github.com/cerner/cerner-smart-embeddable-lib/blob/master/RELEASE.md

shriniketsarkar commented 2 years ago

Thanks @shriniketsarkar for taking care of this. Could you update the instruction to the latest in this file as well? https://github.com/cerner/cerner-smart-embeddable-lib/blob/master/RELEASE.md

Updated the readme here : https://github.com/cerner/cerner-smart-embeddable-lib/pull/50/commits/9deea5ce4fbc68e81dbf5648c367cd48bb14de7f

kolkheang commented 2 years ago

This file was the previous / old file. We can either remove it, or delete the content and provide the link to the new steps in this file

sdesani commented 2 years ago

Have we thought of using Github Actions for CI and Release ?

shriniketsarkar commented 2 years ago

Have we thought of using Github Actions for CI and Release ?

Yup we have thought of it but this project's uplift has been on a back burner as we always had priority stuff to work on. Hopefully we will get there sometime soon.