- Create a release branch off
development
with the namerelease/v[VERSION]
. Example:release/v0.0.1
. - In this branch, make a commit to update the version number in the file
package.json
. - Open a pull request from the release branch into the
main
branch. - After passing a thorough review, merge into the
main
branch, making a merge commit. - Make a GitHub release, tagging the merge commit in the
main
branch with the version identifier in the format ofv[VERSION]
. Example:v0.0.1
. - In your local environment, pull the changes from remote and checkout the newly tagged commit from the
main
branch. - Clean hardhat using the command
npx hardhat clean
, build the project using the commandnpx hardhat compile
, and assuming it's successful, publish the project to the npm registry usingnpm publish --access public
. - Merge the main branch into the
development
branch, creating a merge commit.