This is an example for publising version 1.2.0
.
- Check that the CI has passed on the shirokuma project's Github page.
- Make sure you are on the
main
branch. - Make sure to run
npm install
to have the latest dependencies installed - Run the test suites and make sure all tests pass:
npm run test
and also testnpm run build
- Make sure that all examples in the
README.md
are still up-to-date with the latest API changes.
- Check the git history for any commits on main that have not been mentioned
in the Unreleased section of
CHANGELOG.md
but should be. - Add an entry in
CHANGELOG.md
for this new release and move over all the Unreleased stuff. Follow the formatting given by previous entries. - Remember to update the links to your release and the unreleased git log at
the bottom of
CHANGELOG.md
.
- Change the examples in the
README.md
which importshirokuma
by version to use the latest version - Bump the package version in
package.json
usingnpm version [major|minor|patch]
(this is using semantic versioning). - Push your changes including your tags using
git push origin main --tags
.
- Copy the changelog entry you authored into Github's new release
page's description field.
Title it with your version
v1.2.0
. - Run
npm run build
. - Run
npm pack --dry-run
to check the file listing you are about to publish doesn't contain any unwanted files. - Run
npm publish
and check the window for any birds outside your window.