- Create a branch to stage the release, for example
release-3.4.5(Read semver to determine what type of version bump to use.)
git checkout -b release-3.4.5
git fetch
git reset --hard origin/master
-
Run
make storybookand verify that there are no regressions with Link. -
Update
CHANGELOG.mdwith changes that will be included in the release, commit and push to the release branch. -
When ready, publish the new version from the branch before merging
make release-(patch|minor|major)
- Merge the branch
If make release-* from above errors out with an authentication issue,
you may need to npm login or otherwise manually set up your ~/.npmrc file to
make sure you have access to publish to npm.
Once you have done that, the following command will publish the latest version (already bumped and pushed in step 4) to the NPM registry:
- Publish to npm manually
npm --registry=https://registry.npmjs.com publish- Push tags manually
git push --follow-tagsAlso, under github releases page, draft a new release corresponding to the tag of the latest version.