-
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,30 @@ 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. | ||
|
||
## Publishing the Package | ||
|
||
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**: | ||
``` | ||
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 commentThe reason will be displayed to describe this comment to others. Learn more.
You can use ``` for code block There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. addressed bea8a3a |
||
``` | ||
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 | ||
``` | ||
|
||
3. **Publish the package to the npm registry**: | ||
``` | ||
npm publish | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. addressed bea8a3a |
||
``` | ||
|
||
4. Once publish is complete make sure it's uploaded to [npm][project-url] | ||
|
||
Further explanation on the automated steps behind the ```release.js``` script can be found [here][release-documentation] | ||
|
||
|
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.
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