Ideally would not have to hardcode the version but I didn't see a way to query the plugin version using the sdk. Anyways there is also another copy of the version in package.json (which seems to be required for Grafana 8.2.x).
To avoid problems with mismatched versions, I've also added a check in the Github action used to create releases.
https://github.com/scalyr/scalyr-grafana-datasource-plugin/issues/36
Ideally would not have to hardcode the version but I didn't see a way to query the plugin version using the sdk. Anyways there is also another copy of the version in package.json (which seems to be required for Grafana 8.2.x).
To avoid problems with mismatched versions, I've also added a check in the Github action used to create releases.