This document is intended for maintainers of the project. It describes the process of maintaining the project, including how to release new versions.
Here is a very high level flow of how we go from idea to release:
- User XYZ wants to add feature ABC to the project
- The user likely opens an issue
- Either the user or a maintainer creates a pull request with the feature
- The pull request is reviewed by a maintainer - CI passing, etc
- The pull request is merged
- A new tag is pushed to the repository (see section below for more details)
- A pre-release is created on GitHub. Maintainers can test this pre-release and so can users.
- The pre-release looks good, so the maintainer(s) flip the release to a full release (aka latest)
- The
update-latest-release-tag
workflow is run to sync major release tags with the latest release tag
This project uses semantic versioning
Creating a release is a rather straight forward process.
First, you must edit the src/version.js
file to bump the version number.
Second, you simply run the following script to push a new release tag using the version number in src/version.js
as a default:
script/release
Pretty much just
script/release
and pressENTER
for the default
Now that the new release is published you can set it as a pre-release to test it out, or set it as the latest release.
Once a tag is set to the latest release, we need to update the major release tags to point to the latest release tag.
What does that mean?... Here is an example! Let's say we just pushed a new release with the tag v1.2.3
and we want our "major" release tag v1
to point to this new release. We would run the update-latest-release-tag
workflow to accomplish this. The workflow has a few inputs with descriptions that will help you along with this process.
The reason that we update release tags to point to major releases is for the convenience of users. If a user wants to use the latest version of this Action, all they need to do is simply point to the latest major release tag. If they point at v1
then they will pick up all changes made to v1.x.x
without having to update their workflows. When/if a v2
tag rolls out, then they will need to update their workflows (example).