This guide outlines the steps to release a new version of the React component library by tagging and pushing to GitHub and npm.
Follow these steps to release a new version:
-
Update the version: Open the
package.json
file and update the version field to the desired version number. Save the changes. -
Commit the changes: Commit the updated
package.json
file using the following command:git add package.json git commit -m "Bump version to vX.X.X"
-
Tag the release: Create a new Git tag for the release using the following command:
git tag -a vX.X.X -m "Release vX.X.X"
Replace
X.X.X
with the actual version number. -
Push the changes: Push the committed changes and the newly created tag to the GitHub repository:
git push origin main git push origin vX.X.X
-
Create a GitHub release: Create a new release in GitHub with the new tag. This will trigger a GitHub action that will automatically publish the new version to npm.
-
Verify the release: Visit the GitHub repository and npm package page to verify that the new version has been successfully released.
By following these steps, you can release a new version of tail-react by tagging and pushing to GitHub and npm.
For any issues or questions, please refer to the project's documentation or seek assistance from the project maintainers.