To create a new release the developer first needs to run:
npm run release
This script will run release-it which will then prompt the user for the:
- version
- commit message
- tag name (NOTE: Tag name should follow the pattern v*..)
release-it should then:
- bump the version in the package.json and package-lock.json files
- update CHANGELOG.md
- make the release commit
- create the tag
From there the developer needs to:
- Review the changes made by release-it are as expected.
- Push the commit and tag to the main branch (requires proper authority)
git push --follow-tags origin master
Once the tag and commit is pushed to the main branch our github action will:
- Create the GH release
- Publish the release to NPM