- Appropriately bump the version of the Client Library by using the
npm version
command. It's easiest to do the following:- Ensure you've forked
hifi-spatial-audio-js
. - Check out
main
on your fork of this repo, using a command like:git checkout main && git pull upstream main && git push -u origin main
- Check out a new branch on your fork of this repository with
git checkout -b <new branch name>
. - Run
npm version <major | minor | patch>
(depending on whether you want to rev themajor
,minor
, orpatch
version number). - Run
git push -u origin <new branch name>
to push the version changes to your branch. - Make a new PR against the base repository containing your version changes.
- Have someone at High Fidelity merge the PR.
- Ensure you've forked
- Make a Pull Request to pull all of the code from the
main
branch, including the new version changes, into therelease
branch.- If you followed the detailed instructions from step (1) above, you can make a pull request with a base of
main
and a compare branch of<new branch name>
.
- If you followed the detailed instructions from step (1) above, you can make a pull request with a base of
- Have the PR reviewed and merged.
- Once the PR is merged and the latest code is now on the
release
branch, click here to start drafting a new release. - Under "Tag version", input
v<Package Version>
- The GitHub release version must always match the package version found in
./package.json
. - For example, your "Tag version" may be
v1.4.3
.
- The GitHub release version must always match the package version found in
- Important: Under the "Target" dropdown, select
release
. - Under "Release title", input some text for the release's title. Ensure the release's title contains the tag version.
- For example, your "Release title" may be as simple as
Release v1.4.3
.
- For example, your "Release title" may be as simple as
- Under "Describe this release", input some text for the release's description.
- This is a good spot for a changelog.
- Ensure that the checkbox next to "This is a pre-release" is not checked.
- Click the "Publish release" button.
After you click "Publish release", this GitHub Action will automatically perform the following actions:
- Check out the code.
- Setup a NodeJS
v14.y.z
environment. - Install the NodeJS modules required to build the Client Library.
- Build the library's TypeDoc documentation, then upload that documentation to S3.
- Build the WebJS version of the Client Library.
- Create a
.zip
file containing the two Client Library files (base "Audio" library and optional "Controls" library) - Upload the
.zip
file and the two Client Library files to thelatest
folder inside the releases S3 bucket. - Upload the
.zip
file and the two Client Library files to a folder corresponding to the current version of the Library inside the releases S3 bucket. - Build the NodeJS version of the library.
- Publish the NodeJS library module to npmjs.com/package/hifi-spatial-audio.
- Creates and uploads a new
releases.json
to a specific place on S3, which will then cause our Downloads page to automatically update for visitors.