Make sure you have the following dependencies installed first:
-
Install dependencies
yarn install --pure-lockfile
-
Build plugin in development mode or run in watch mode
yarn dev
or
yarn watch
-
Build plugin in production mode
yarn build
-
Build the backend binaries
mage -v
You need to have commit rights to the GitHub repository to publish a release.
-
Update the version number in the
package.json
file. -
Update the
CHANGELOG.md
with the changes containted in the release. -
Commit the changes to master and push to GitHub.
-
Create a release branch locally that follows the convention v(major).(minor).x, leaving the patch as
x
. For example:git checkout -b v3.3.x
-
Push the new branch to GitHub
git push origin v3.3.x
-
This triggers the release pipeline on CircleCI. There are two steps in the pipeline that need a manual approval to proceed. Find your release build and wait until it reaches the
approve_release
step. -
Click on the step and choose approve. Then wait until it reaches the
publish_to_gcom
step. -
Click approve and check that the release is published to grafana.com.
-
Test the published version of the plugin either locally or on a Hosted Grafana instance.