-
Install dependencies
yarn install
-
Build plugin in development mode or run in watch mode
yarn dev
or
yarn watch
-
Build plugin in production mode
yarn build
-
Build backend plugin binaries for Linux, Windows and Darwin:
mage -v
-
Sign the plugin for private deployments
yarn sign --rootUrls http://localhost:3000
name=$(jq -r '.id' src/plugin.json)
cp -a dist "$name"
zip -r "$name.zip" "$name"
docker run -it --rm -v $(pwd):/plugin grafana/plugin-validator-cli /app/bin/plugincheck2 -config config/default.yaml /plugin/$name.zip
- Update the CHANGELOG.md
- Update the version in the package.json
- Commit the changes and create a
vX.Y
tag matching contents of thepackage.json
file.
The release workflow will be triggered when pushing the tag and will create the GitHub release with the artifacts and release notes.