mirror of
https://github.com/video-dev/hls.js.git
synced 2026-05-17 13:30:38 +00:00
19 lines
1.2 KiB
Markdown
19 lines
1.2 KiB
Markdown
# Performing A Release
|
|
|
|
Releases are performed automatically with [GitHub actions](https://github.com/video-dev/hls.js/actions?query=workflow%3ABuild+branch%3Amaster).
|
|
|
|
Note that [protected tags](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/configuring-tag-protection-rules) are configured so you need to be either an admin or maintainer to push the tag.
|
|
|
|
1. `git tag v<major>.<minor>.<patch>` or `git tag v<major>.<minor>.<patch>-<prerelease>` _('v' required)_ where anything before the first `.` in `<prerelease>` will be become the [npm dist-tag](https://docs.npmjs.com/cli/dist-tag).
|
|
1. `git push`
|
|
1. `git push --tag`
|
|
1. 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.
|
|
1. Update the release notes to the new draft GitHub release if needed.
|
|
1. Publish the GitHub release.
|
|
|
|
## Examples
|
|
|
|
- `git tag -a v1.2.3` will result in `1.2.3` being published with the `latest` npm tag.
|
|
- `git tag -a v1.2.3-beta` will result in `1.2.3-beta` being published with the `beta` npm tag.
|
|
- `git tag -a v1.2.3-beta.1` will result in `1.2.3-beta.1` being published with the `beta` npm tag.
|