Releases are performed automatically with GitHub actions.
git tag v<major>.<minor>.<patch>
orgit tag v<major>.<minor>.<patch>-<prerelease>
('v' required) where anything before the first.
in<prerelease>
will be become the npm dist-tag.git push
git push --tag
- Wait for the GitHub action to create a new draft GitHub release with the build attached. The publish to npm should happen around the same time from a different step.
- Update the release notes to the new draft GitHub release if needed.
- Publish the GitHub release.
git tag -a v1.2.3
will result in1.2.3
being published with thelatest
npm tag.git tag -a v1.2.3-beta
will result in1.2.3-beta
being published with thebeta
npm tag.git tag -a v1.2.3-beta.1
will result in1.2.3-beta.1
being published with thebeta
npm tag.