-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated the release script and readme #72
base: master
Are you sure you want to change the base?
Conversation
RELEASE.md
Outdated
@@ -12,8 +12,24 @@ Releasing the project requires these steps: | |||
node scripts/release/release.js minor | |||
``` | |||
|
|||
2. The above release script should automatically update the package version and regenerate assets in ```dist``` & ```lib``` folders. Once assets are regenerated the script commits and tags the changes and will push them to remote and `npm publish` will be triggered automatically. | |||
3. Once publish is complete make sure it's uploaded to [npm][project-url] | |||
2. The above release script should automatically update the package version and regenerate assets in ```dist``` & ```lib``` folders. Once assets are regenerated the script commits the changes to a new branch and will push them to remote. Go to the branch repository on GitHub and create a PR from the newly created branch to the master branch. Once the PR is approved, merge it into the master branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2. The above release script should automatically update the package version and regenerate assets in ```dist``` & ```lib``` folders. Once assets are regenerated the script commits the changes to a new branch and will push them to remote. Go to the branch repository on GitHub and create a PR from the newly created branch to the master branch. Once the PR is approved, merge it into the master branch. | |
2. The above release script should automatically update the package version and regenerate assets in ```dist``` & ```lib``` folders. Once assets are regenerated the script commits the changes to a new branch and will push them to remote. Go to the branch repository on GitHub and create a PR from the newly created branch to the `master` branch. Once the PR is approved, merge it into the `master` branch. |
|
||
After the PR is created and merged into the `master` branch, follow these steps to publish the npm package: | ||
|
||
1. **Pull the latest changes from the `master` branch**: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git checkout master
git pull origin master
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use the ``` for code block
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed bea8a3a
git checkout master | ||
git pull origin master | ||
|
||
2. **Create a tag and push the tag**: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git tag v{x.x.x} # Replace {x.x.x} with the next release version
git push origin v{x.x.x} # Replace {x.x.x} with the next release version
You can use ``` for code block
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed bea8a3a
git push origin v{x.x.x} # Replace {x.x.x} with the next release version | ||
|
||
3. **Publish the package to the npm registry**: | ||
npm publish |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
npm publish
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed bea8a3a
Updated the release script and readme.
Release script test teminal logs: https://gist.github.com/Surya-Rnsit/b541fa5a4f9f4796791542fa5bcd5ddf
Tested Release branch: https://github.com/oracle-samples/cerner-smart-embeddable-lib/commits/release-minor-2024-09-20/